Quantcast
Channel: Question and Answer » gdal
Browsing all 397 articles
Browse latest View live

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 Article


GDAL 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 Article


Convert 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 Article

How 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 Article


Combine 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 Article

GDAL 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 Article

Gdal_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 Article


GDAL 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 Article


Image may be NSFW.
Clik here to view.

qgis 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 Article

Image may be NSFW.
Clik here to view.

Holes 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 Article

NDVI 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 Article

Converting *.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 Article


Image may be NSFW.
Clik here to view.

Error 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 Article

GDAL (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 Article


Image may be NSFW.
Clik here to view.

Aerial 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 Article

Image may be NSFW.
Clik here to view.

Compression 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 Article


why 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 Article

Sending 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 Article

Raster 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
Browsing all 397 articles
Browse latest View live