Shifting image in a vrt
I have a set of geotif images that I want shifted by an integer number of pixels in X and Y. However, those images are quite large, so I don’t want to duplicate them (and I need to keep the original...
View ArticleGDAL Application crashes when loading GDAL drivers
I’m developing on QT an application that uses GDAL library (which I compiled using MinGW 4.8). When I use the application on my windows 8 laptop, it works fine, but when I tried using it on several...
View ArticleConvert GML to DXF using ogr2ogr
I cannot make ogr2ogr.exe work. I’m using GDAL 1.11. I keep getting the following error message: ERROR 1: Did not get at least 2 values or invalid number of set of coordinates 709993.98 6181946.65...
View ArticleHow to overwrite metadata in a tif file with GDAL?
I have a set of tif files generated from a process with multiple steps. Some metadata tags are added at different steps. I would like to update the metadata of those file before distributing the files....
View Article(How) can I write string data to a raster with Python/GDAL?
In Python, I have a NumPy array of string values (categories of some variable) that I’d like to write to a raster file (.tif or .img) using GDAL. The impression I get is that it’s not possible to write...
View ArticleCombine overlapping rasters in gdal_calc.py, taking the maximum value from...
I want to combine 3 overlapping rasters to create 1 raster. Each have the same dimensions, resolution and CRS. I want to populate the new raster with the maximum value from each of the layers. However,...
View ArticleGDAL Installation help in windows
I’m trying to build a GIS application in Django Framework. I completed the GeoDjango installtion (postresql, spatial libraries). I installed OSgeo4W in my C drive. I also setup environment variables....
View ArticleGdal_Calc.py random pixel error
I’m using the gdal_calc.py in python in order to do the same thing as the Con tool in ArcGIS. I’m calling the .py using os.system: os.system('gdal_calc.py -A%s -B%s --outfile=%s...
View ArticleGDAL for Python: extracting subdomains from NetCDF file?
I need to make a script that processes a NetCDF file that contains 3 days of hourly forecast data from the norwegian meteorological office. The NetCDF file contains various data I need...
View Articleqgis polygonize error 4 "file does not exist in the file system"
When I try to convert a raster DEM (in asc or geotif format) to polygons I get the error below. ERROR 4: `Y:/GIS/oversvmmelser/tmp/out.tif' does not exist in the file system, and is not recognised as a...
View ArticleHoles between imagery tiles projected using gdalwarp
I am having the following issue when reprojecting imagery tiles using gdalwarp. These are 4096×4096 imagery tiles, which I’m gdalwarp’ing from WGS84 to a State Plane projection. When reprojected, the...
View ArticleNDVI code using C++
Using C++, I need code to calculate NDVI and output a TIF format. I am working on a project, I am also using GDAL for data manipulation.
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 ArticleError in polygonising raster data with QGIS on Mac
I’m using QGis Chugiak on a Mac and I’m trying to converting a raster layer in a vector data by: Raster/Conversion/Polygonize. So, I select the layer needed from the drop-down menu, I give a name to...
View ArticleGDAL (Python) Aggregate Raster Into Lower Resolution
I have a (continent-scale) raster with 30m resolution in an Albers equal area projection. Each 30m cell has a value 1-34. I would like to aggregate information from this raster into a 1km grid such...
View ArticleAerial Imagery Showing in Different Colour while pan/zoom geoserver
I have img/tif files of a small aerial imagery. I published it under ImageMosaic plugin (GDAL plugin installed), but when I pan or zoom the map in OpenLayer preview I am getting different colour for...
View ArticleCompression Artifacts and GDAL
I am working with large tiled (no overlap) datasets of ortho imagery that has been mosaicked in ArcGIS and exported as a single, merged TIF for the entire AOI. These images need to be compressed so...
View Articlewhy gdaldem is not producing any result?
I have a geotiff file with class values (0, 1, 2, 3, and 4). I want to show each class as different rgb color. So, I created the text file (color_relief.txt) which contans the following: 0 55 78 94 1...
View ArticleSending commands into FGDB
I have a large .gdb of all blocks in the United States, available from Census. I would like to create a point shape file of all census tract centroids in the US. I have QGIS with FileGDB enabled, as...
View ArticleRaster created by python GDAL interpreted upside down
I am using CRS which has axis in left bottom corner. Code below produce Geotiff which is shown allright in QGIS but when I open it in other software it is upside down. Also gdal_calc takes it as upside...
View Article