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
0answers
39 views

How to create raster with origin in degrees and dx dy in metres

I need to create a raster from array. In gdal if i understand correctly i need to specify the top left lat lon for the SetGeoTransform((originX, pixelWidth, 0, originY, 0, pixelHeight)) however the ...
1
vote
0answers
39 views

Projected Coordinate System issue using GDAL and qgis when defining x and y

I have a numpy array which I would like to save as GeoTiff using GDAL in python. The array was created using the following PCS in mind: +proj=lcc +lat_1=48 +lat_2=48 +lat_0=48 +lon_0=0 +x_0=0 +...
0
votes
0answers
80 views

How to transform any GTiff to Lambert Azimuthal Equal Area with GDAL?

I am trying to transform a GTiff EPSG:4326 +proj=longlat +datum=WGS84 +no_defs and a GTiff EPSG:31982 +proj=utm +zone=22 +south +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs both to EPSG:...
1
vote
1answer
96 views

No GDAL/OGR package for Ubuntu 15.04?

Using Ubuntu 15.04, I'm trying to install GDAL/OGR. I did: [] sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable [] sudo apt-get update However, I found this error message W: Failed to ...
0
votes
1answer
799 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
16 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
124 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
114 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 12.04....
1
vote
0answers
120 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: qgis.utils.iface....
1
vote
1answer
91 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
53 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
244 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
426 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
30 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 system/...
2
votes
1answer
65 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
93 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
38 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
54 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
185 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
41 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
87 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
104 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
74 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 ...
2
votes
0answers
73 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 ...
2
votes
0answers
194 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
208 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
176 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): ...
3
votes
0answers
47 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
254 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
54 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
50 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 topo....
0
votes
0answers
37 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
645 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
113 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
125 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
109 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
26 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
172 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 me)....
2
votes
1answer
375 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
196 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
185 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
359 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 = (0.3,10,30,-10,80,-...
1
vote
1answer
108 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
28 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
42 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
120 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 ...
7
votes
3answers
200 views

Identify and delete overlaping or near lines with similar running

I have shapefiles with lines that shows surface water runoff. I need to clear and simplify these shapefiles by condition that if some lines are near by other and has similar running, this lines has to ...
1
vote
0answers
47 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 don'...
1
vote
1answer
91 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 ...
2
votes
1answer
163 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 ...