Rasterize shapefile using another raster's size and resultion
Rasterizing a vector (shp) I face the following problem: I want my output file (the rasterized vector) to have the same resolution and dimensions as an existing raster. If I understand the interface...
View ArticleConflict between ArcPy and GDAL/OGR?
TL;DR I can’t get an installation free version of GDAL/OGR to work from within ArcMap 10.0. I get an ImportError: DLL load failed on _mod = imp.load_module('_gdal', fp, pathname, description). Below,...
View ArticleError reading large virtual raster with rasterio: "Cannot invert degenerate...
I’ve created a virtual raster using gdalbuildvrt, which covers a large extent (England) at a high resolution. The data is fairly sparse, focused around the coastlines with no files covering inland...
View ArticleConverting *.kml file to *.lyr file so Google Earth can create spatial data...
This question already has an answer here: How to convert between KML and Esri's shapefile (SHP) format? 19 answers
View ArticleGDAL WMS in QGIS 2.4
I’m trying to add in QGIS a layer shown here : propluvia When I watch in my console I see this request corresponding to the layer I need. The server is not able to respond to a getCapabilities request...
View ArticleOpening Spot 5 DIMAP imagery in GDAL
Would like to know if someone is familiar of opening SPOT 5 DIMAP imagery using GDAL. Though the GDAL provides DIMAP driver, when I tried to open, it can not show the geotransform and geoprojection.
View Articlegoing from hillshade to percent shaded (gdaldem)
I assumed hillshades output percent shaded (scaled to 255) at the given azimuth and altitude but this is incorrect. A flat raster at 80 degrees altitude has a maximum value of 251 instead of 255. How...
View ArticleWhat is GDAL equivalent to ArcGIS Lookup (Spatial Analyst) tool?
I use the Lookup (Spatial Analyst) tool to create several raster layers from a combined raster layer. I know ArcPy can do the same thing. However, I would like to know whether GDAL (or another open...
View ArticleConflicts while installing postgresql9.3-postgis2.1,QGIS and gdal-bin
I want to use postgresql9.3-postgis2.1 and gdal-bin parallel . I have refer instruction here for installing postgresql-9.3 on ubuntu 12.04. I have install qgis from here While installing gdal-bin it...
View ArticleAny solution to mosaic Modis MOD13Q1 using batch file?
I have a Modis MOD13Q1 product for Pakistan, four tiles cover my complete area and I have data consisting of 14 years, after every 16-day interval. I want to mosaic them using a batch file which will...
View ArticleJoin CSV using gdal/ogr
I’m trying to use gdal/ogr to join a shapefile called myshape.shp with a csv called mycsv.csv. The join field in the shape in joinshp and the join field in the csv is joincsv. I’ve found this command...
View ArticleRead esri shape point data and spline interpolation using python shell scripts?
I am quite new in python scripting. I am a dedicated user of arcgis but this time I have to work without arcgis. I have a point shapefile with 10 different attribute fields of different peat layer with...
View ArticleConvert list of coordinates to OGRGeometry or WKT
I am using a Visvalingam-Whyatt simplification script and the output is a list of coordinates such: [[[[-10885205.10690245 3525662.26531131] [-10885369.01690829 3525374.0741439 ] [-10885424.08206484...
View ArticleConverting MDB File With Unicode Characters
I’m using C# wrapper of GDAL and I’m having a problem converting MDB file that contains unicode characters. Lets take for example conversion to KML file, non-English characters are replaced by ‘?’ How...
View ArticleUsing OGR Intersection Method Python
I’m currently working to find the intersections between linears in a shapefile. I’m a newbie to the GDAL/OGR library. I’ve done some googling and came up with what seems to be a useful example(see...
View ArticleInstall gdal in CentOS without Root
I have been struggling to get python setup to do some image processing, so I really need the http://www.gdal.org/ GDAL libraries installed on CentOS 6.5. I want to install the package in a local folder...
View ArticleIs there any way to fast read pixel value using gdal in C#
I create with C# a series of lat/lon value pair in the code(using i, j loop) and I want to extract the pixel value based on either lat/lon pair or pixel location (i, j). I know there is one gdal...
View ArticleMemory leak with GDALOpen?
I’m very new in using GDAL, and trying the tutorial given here. But with a piece of code with only GDALRegister_GTiff(); GDALDataset *poDataset = (GDALDataset *) GDALOpen(argv[1], GA_ReadOnly ); if(...
View ArticleError getting ESRI Shapefile driver OGR in C++
I am unable to create an OGR Layer using the C++ API. I have followed the documentation at this link exactly http://www.gdal.org/ogr_apitut.html I get an error trying to get the shapefile driver. Any...
View ArticleRendering a geotiff block with gdal and gdk-pixbuf – Some flaws in the result
I currently try to render a geotiff file with GTKmmGDKmm (gdk-pixbuf). The file is a tiled geotiff with a block size of 256*256 and three rasterbands. The shortened gdalinfo output is: Driver:...
View Article