GDAL (Geospatial Data Abstraction Library) is an open source translator library & set of command-line utilities for processing raster spatial data formats. As a library, it presents a single abstract data model to the calling application for all supported formats. It also comes with a variety of ...

learn more… | top users | synonyms

0
votes
1answer
184 views

gdal_merge.py can't find libgdal.so.20

I am having some trouble with GDAL (v2.1-dev). I build it from source today using Poppler and OpenJPEG. All the command line utilities work fine, but none of the Python plugins work at all, ...
0
votes
1answer
15 views

Rectifying a Tiff Given One Corner Coordinate

I'm trying to rectify an image that I don't know much about other than the coordinate of the southwest corner, which I was able to pull using ExifTool. Is there any programming solution to ...
0
votes
1answer
66 views

Calculating the difference between two grids in percent with QGIS

I'm using the QGIS GDAL Raster Calculator to get the difference in percent between two grids. Grid A contains an integer, and grid B contains an integer which may be the same as or larger than the ...
1
vote
1answer
55 views

GDAL install on Ubuntu 12.04 works for python 2.x but not python3

I need to install gdal 1.10 or greater to be compatible with python3 on ubuntu 12.04. The machine also has python2 installed. I followed instructions here Error While installing GDAL in Ubuntu ...
1
vote
0answers
95 views

How to handle GDAL dataset error when accessing Arcgis Online world imagery data?

I would like to use the world imagery data set for loading base maps to my QGIS projects. Up until now, I have had no problem by typing the following command in the Python console: ...
1
vote
1answer
36 views

Applying a new colour scheme on GdalRasterLayer using SharpMap

I'm currently developing a surface water modelling system in C# (.NET) and am using the SharpMap control as my mapping component. It's all going well, but there's one thing I'm struggling with. I ...
1
vote
1answer
37 views

stack 10 modis ndvi geotiffs and scale them by 0.0001

I have 10 geotiffs Modis ndvi named 2005.tif ... 2014.tif I want to stack them all and create timeseries. i know how to do that, but the stacked images still need scaling by 0.0001. how can i bulk ...
1
vote
1answer
112 views

Count number of points within multipolygon shapefile using OGR

I have two shapefiles: 1) consists of points (hundreds of entries) and 2) multi polygons (tens of thousands of entries). I simply need to count the total number of points contained within the ...
0
votes
0answers
101 views

Dissolve using GDAL/OGR?

I'm trying to dissolve a shapefile according to a field using Python 2.7.10 and I don't want to use ArcPy. Is there any way to do this using GDAL/OGR?
0
votes
0answers
29 views

Using GDAL to ID a pair of GeoTiff Coordinates

I've got a large library of images with no spatial reference. When I view the GeoTiff properties, I can view a lat/long under a "GPS" heading, but there's no indication of a coordinate ...
2
votes
1answer
51 views

Write ogrinfo result to text file

I have obtained a desired value from a dataset using: ogrinfo input.shp -dialect SQLite -sql "SELECT SUM(field) from input The ogrinfo command prints the desired value via the command line when I ...
4
votes
0answers
60 views

How to use GDAL Correlator?

I need to align several images using FOSS. There is Correlator tool in GDAL (source) that seems to be suitable for the job. But I was unable to find documentation for it or a tutorial. Can someone ...
1
vote
1answer
26 views

resample etopo.grd with gdal_warp gives many null values

I'm having a problem with resampling ETOPO NetCDF GRD to a bigger pixelsize for using it with Generic Mapping Tools. I'm using gdal_warp for the resampling (just for testing with pixelsize of 1°): ...
3
votes
1answer
43 views

GDAL VRT files get corrupted by reading

In my stand-alone QGIS app I am using vrt files of DTED rasters. All vrt files are build with the same Python code and have the same structure, codepage etc. I use them for display only. ...
3
votes
1answer
62 views

Calculate new field from existing fields using expression in gdal/ogr and append to shapefile

I'm trying to calculate a new field from existing fields based on a simple expression for a set of polygons in GDAL/OGR. The expression is basically: new field = (field 1 / field 2) * field 3 ...
0
votes
0answers
26 views

GDAL ReadAsArray error

I have a plugin where I create a raster and write in that raster. This worked before but now in QGIS 2.10 doesn't work. I search for gdal API tutorial and I didn't find ReadAsArray as I have in code. ...
1
vote
1answer
56 views

How to rasterize a point layer with multiple features falling inside a raster cell?

How to make a raster with values that are the sum of all points inside each raster cell? The burn value is a specific attribute. Using gdal_rasterize or gdal.RasterizeLayer(), the resulting raster ...
3
votes
1answer
48 views

Mass reprojection of raster files in a loop [Linux]

I have a folder with numerous .asc raster files that each accompanied by a corresponding .prj file. The file basename is the same for both files. The projection however can vary between all of them ...
1
vote
0answers
36 views

GDAL MSSQL with numeric table names

I have many SHP tables organised by year, for example 2015_xx_data.shp that I have loaded into a MS SQL Server database using OGR2OGR. I have also loaded them into MySQL for a comparison. There are no ...
1
vote
0answers
39 views

Export File Geodatabase Raster to TIFF or IMG

Is there a license-free technology that can export rasters from an ESRI File Geodatabase to a file-based raster (e.g. GeoTIFF or IMG file)? ESRI has the FileGDB API for "reading" the contents of a ...
1
vote
0answers
68 views

How to import netcdf in qgis

I have been trying to impot netcdf files following this guide online http://www.ggiuliani.ch/download/netcdf_qgis_GG.pdf into qgis 2.10 with no success. ALthough the file is imported, the dimensions ...
0
votes
0answers
98 views

GDAL in C++: Resize Image (gdal_warp?)

I would like to resize a geotiff using GDAL in C++. Searching online, I bumped into another question here that explains it is possible through gdal_warp and gdal_translate via terminal. But there ...
3
votes
1answer
82 views

Extracting values from raster under line using GDAL?

How can I find the cells which lie on a straight line between two points? I.e. how can I find the indices of the cells (in grey) which are intersected by the line defined by the two points (in blue): ...
2
votes
0answers
35 views

Batch Georectifying Imagery

I have a large collection of drone images that aren't georeferenced. I'd like to georectify them by pulling projection and coordinate data from the GeoTiff files, but I'm having difficulty. My ...
2
votes
2answers
139 views

Find country from GPS coordinates, offline using python

I'm aware that there are several similar questions already but I have been searching for days and not been able to solve my problem: All solutions I've found require GDAL, which I have not been able ...
0
votes
0answers
39 views

gdal_merge was unexpected at this time

I am using gdal_merge to create an raster from around 250 files (rasters). when I run the command i got gdal_merge was unexpected at this time The command is correct as if I split the files it works ...
0
votes
1answer
40 views

Simple gdal coordinate conversion

Sorry for this simple question, but starting with an .img file how to I convert a specific (x,y) coordinate into (lon,lat) with gdal. I don't know what my input format is, but if I type gdalinfo ...
0
votes
0answers
24 views

View multiple NEATLINES of a geoPDF using GDAL

I've created a PDF that has two PDF Viewports, the main map and an overview map. When running gdalinfo it only finds a single NEATLINE. Is there a way to list all NEATLINES in the document using ...
1
vote
0answers
205 views

Error While installing GDAL in Ubuntu 12.04

I am trying to set CartoDB in Ubuntu 12.04. I am trying to install Python dependencies as a part of my installation. I am installing with below commands export CPLUS_INCLUDE_PATH=/usr/include/gdal ...
0
votes
1answer
60 views

GDAL in C++: Wrong Raster Values After Cropping geoTiff Dataset

I'm trying to transfer a subset (box (0,0)-(300,300)) of a panchromatic geotiff to a new file. Although the georeference and the set are transferring correctly, the raster values seem off. Loading ...
0
votes
2answers
85 views

Resampling DEM using gdal in python?

Using gdal I want to resample (in this case, oversample) a DEM. The only thing that should change is the pixel spacing, so I want to interpolate in between the values that I currently have. For this I ...
1
vote
0answers
47 views

GDAL - replacing rgb value (0,0,0) with (nodata,nodata,nodata)

I have a set of rasters in which I want to replace any rgb value of (0,0,0) with (nodata,nodata,nodata) I've tried using gdal_translate -a_nodata "0,0,0" in.tif out.tif But this seems to convert ...
1
vote
0answers
20 views

Transform stereographic projection using GDAL

How can I read/wrap a JPG image without any embedded projection/coordinate system to an autoreferenced GEOTIFF with Mercator or similar coordinate system using GDAL? The image is 500x500 px and I ...
0
votes
0answers
84 views

Python gdal import error

I installed gdal from source using steps from this answer http://gis.stackexchange.com/a/21739/60378 (ommiting first line sudo apt-get install build-essential python-all-dev as it did not work for ...
2
votes
1answer
145 views

Import GDAL Error

I'm trying to import GDAL to run in 64-bit spyder and am getting the following error: import gdal Traceback (most recent call last): File "<ipython-input-1-27bf4694dd2b>", line 1, in ...
5
votes
1answer
131 views

Create shapefile of raster outline using python

I want to create a single bounding shapefile polygon of valid pixels in raster data (GeoTIFF) using python. I need something efficient as I need to do this for hundreds of rasters. I had thought of ...
4
votes
1answer
163 views

Is there a way to get only a single output from GDALinfo?

I want to get just the Pixel size of a raster (in an automated workflow), and gdalinfo looks like the best tool for that; The trouble is that it gives a whole lot of info which I don't need. So ...
1
vote
2answers
69 views

GDAL SetGeoTransform does not work as expected

No transformation is visible after using SetGeoTransform to the dataset opened from a *.tiff file: ds = gdal.Open(filename, GA_ReadOnly) # open the raster data set geo_transform = ...
1
vote
1answer
64 views

gdalinfo documentation includes -json flag but using it returns “FAILURE: Unknown option name '-json'”

Reading the documentation for gdalinfo describes the option of formatting the output as JSON. -json Display the output in json format. However, when I use the -json tag it appears ...
0
votes
0answers
15 views

Dealing with NULL values in geodatabase using GDAL commands?

I have a geodatabase and I'd like to return a value for NULL. (When I look at my raster layer, there are a lot of zeroes which I am assuming is because of the NULL values) Is there a way to use the ...
0
votes
0answers
34 views

Configure MrSID extension on OSGeo suit 4.7 (Windows 7 64 bit)

I have downloaded OS-Geo suit 4.7 and trying to configure MrSID extension in geo-server but not getting what steps to be used. According to research : 1.This links gives information so tried steps ...
2
votes
1answer
61 views

What compression algorithms or image formats are supported in the gdal_retile.py -co “COMPRESS=” argument?

Running Ubuntu 14.04 with GeoServer 2.7.2. I've got gdal-bin 1.10.1 libgdal1h 1.10.1 and python-gdal 1.10.1 installed from the default repository. I'm using gdal_retile.py to create an image pyramid ...
1
vote
0answers
26 views

How to use ST_fromGDALRaster correctly with a given GeoTIFF

I am trying to import gdal raster data (a GeoTIFF) to a Postgis database, using the ST_FromGDALRaster method (http://postgis.net/docs/manual-2.1/RT_ST_FromGDALRaster.html). The question is that I ...
1
vote
1answer
64 views

netCDF transformation

I have netCDF files with some datasets with data and two datasets containing lons and lats. I would like to open data layers in QGis in coordinates that are writen in netCDF's lon/lat datasets. How ...
1
vote
1answer
75 views

Node GDAL for ogr2ogr conversion

I currently have some scripts that use OGR2OGR to translate data form various source formats like ESRI Shapefile, GML etc to other file formats but especially to my PostGIS database. My normal ...
2
votes
1answer
47 views

label a shapefile from command line

I have a SHP file and a DBF file that has an attribute table with a column for elevation. Through command line how can I make this these elevations visible when I view the shape file? I would ...
0
votes
0answers
42 views

Terrain elevation in QGIS

How can I get started with creating a map with elevation just like this one: Basically I need a map that looks like the one above. Can someone tell me where can I get the data, and how do I process ...
1
vote
1answer
53 views

How to use -tap in gdal_rasterize

I have read the gdal documentation for gdal_rasterize. As well as reading the original forum that established -tap (target aligned pixels). I understand -tap is used to make a standard grid (maybe ...
3
votes
2answers
181 views

Can ogr2ogr read .kmz files? How?

Attempting a run-of-the-mill ogr2ogr process with a KMZ file failed: FAILURE: Unable to open datasource `Rail.kmz' with the following drivers. Is there a trick? (Obvious workaround is to unzip the ...
2
votes
2answers
48 views

Convert NAD_1983_Georgia_Statewide_Lambert to NAD83

All I have a ESRI generated shapefile that uses: NAD_1983_Georgia_Statewide_Lambert Here is the projection information: ...