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
4 views

NED (NAVD88) to WGS84 heights

I need to convert the 1/3 arc second DEM files from the NED into WGS84 ellipsoid heights. The documentation says that the NED is referenced to NAVD88. I've tried using gdalwarp as follows: gdalwarp ...
1
vote
0answers
21 views

How to Convert from GMT Line files to Shapfile for Qgis?

I have several line text-files of (used in GMT) saved in the format (this is a small sample): -111.29 42.28 -111.29 42.31 -111.29 42.33 > -111.37 41.99 -111.38 42.02 I am trying to convert this ...
2
votes
0answers
14 views

Convert MODIS HDF file in sinusoidal projection into GeoTiff with

I'm looking for a way to convert MODIS LST data from HDF to Tiff format, and reproject from sinusoidal to WGS84 - all using python GDAL. An example file is here (I only care about band 0) : ...
0
votes
1answer
43 views

How to read MODIS hdf file into R [on hold]

I am having some problems with the processing MODIS HDF in R. I want to import MOD13A3 NDVI hdf file. Purpose is to read image cells value as a matrix. I have install MRT in my PC, I had planned to ...
-1
votes
1answer
29 views

Gdalbuildvrt dosen't output the vrt file

I am trying to use gdalbuildvrt to create a time series of landsat images. I used the following code but it is not outputting the vrt file. In the code inlist is the txt file with path to input ...
0
votes
0answers
8 views

Resampling using gdalwarp gives me no data

I have an image with the following information. Driver: GTiff/GeoTIFF Files:test_DEM.tiff Size is 91, 73 Coordinate System is: GEOGCS["WGS 84", DATUM["WGS_1984", ...
0
votes
0answers
20 views

Gdal ogr simplify/intersects

Can anyone give an example: How to use the simplification? For example // read the coordinates of the polygon char * wgsRef = NULL; OGRPolygon *poPol = (OGRPolygon ...
1
vote
1answer
64 views

Installing GDAL2.1

Here will be my sequence of command lines while trying to install gdal2.1 in a UBUNTU virtual machine. My virtual machine is a UBUNTU 16.04 LTS(64bit) I would need gdal2.1 and especially the Python ...
0
votes
0answers
22 views

Resampling geotiff images? [closed]

I am trying to resample an image (geotiff) to a 5 m x 5m resolution using python. I am new to gdal and not sure how to go about it. Using gdal.ReprojectImage is what I should be doing, It would be ...
1
vote
0answers
26 views

Unable to add MrSID extension to GeoServer

I'm trying to serve some MrSID files with GeoServer following the geoserver.org guide, however, I can't get the MrSID Raster Data Source to show up when attempting to add a new GeoServer Store. This ...
1
vote
0answers
30 views

Converting TIFF (DIMAP) to .xyz file format with GDAL

We are attempting to convert a .tif file into .xyz file. We have been using gdal_translate on a linux box and this is the line we've used: gdal_translate -strict -of XYZ ABC.tif ABC.xyz -mo ABC.dim ...
0
votes
1answer
15 views

Set PATH variables for ogr2ogr without admin privileges

In the office I use ogr2ogr to convert several file formats such as KML or ESRI shapefiles. Since the commands are the same almost every time I'd like to run ogr2ogr with a batch. I'm using the GDAL ...
1
vote
1answer
41 views

tiff to shapefile using GDAL - slow speed

I am converting a 500MB .tif file to .shp file using GDAL. I am using the following: gdal_polygonize.py .tiff file -f “ESRI Shapefile” out.shp However, I abandoned the first attempt as in 12hrs it ...
3
votes
0answers
24 views

GDAL gdal_polygonize.py TypeError

I am using GDAL to convert a .tif to .shp file. gdal_polygonize.py input.tif -f “ESRI Shapefile” out.shp However this does not work and results in: Traceback (most recent call last): File ...
1
vote
0answers
30 views

Is there any way to connect features (entities) of dxf to database in python?

I'm using gdal, ezdxf, sqlite python packages and sqlite ODBC driver. They work fine, and in AutoCAD I can easily manually connect to my dbase.sqlite (read only) using _DBCONFIGURE and _DBCONNECT ...
3
votes
0answers
21 views

How to blend edges of aerial imagery with gdalwarp

I need to fade/blend the edges of a series of aerial images with gdal. The closest thing that I've been able to accomplish is using the -cutline and -cblend switches of gdalwarp to get the edges to ...
3
votes
2answers
70 views

How to add support for FileGDB (Esri file gdb API) driver in fiona?

There has been a tons of questions on that but none of them solved my problem. I have a machine with: Windows 7 x64 Python 3.4.3 x64 gdal installed: gdalinfo --version --> GDAL 1.11.4, released ...
3
votes
0answers
44 views

GDAL RasterIO performance in C++ vs ReadAsArray in python/numpy

I'm currently writing optimisations for a raster viewer program which uses gdal as it's base. It's currently written purely in python, and has some major speed issues which cause problems when we are ...
1
vote
0answers
23 views

Qgis gdalogr:contour is not generating output

I am trying to use gdal:contour script in Qgis console and then script. Here is code which I tried write to console. raster = QgsRasterLayer('C:/Users/Bulva.user/Desktop/test_raster.asc', "DEM") ...
0
votes
1answer
31 views

Can gdalwarp reproject from ESPG:4326 (WGS84) to UTM?

I've a GeoTIFF image in ESPG:4326 (WGS84) and when I try with gdalwarp to reproject to UTM, it has problem gdalwarp -s_srs "EPSG:4326" -t_srs '+proj=utm +zone=33 +datum=WGS84 +units=m +no_defs' -of ...
2
votes
0answers
28 views

Non-zero error with ImportFromEPSG() in GDAL/OSR/Python

I'm currently getting an error when testing ImportFromEPSG() on my GDAL. import osr testSR = osr.SpatialReference() testSR.ImportFromEPSG(4326) #this returns value of 6 print ...
6
votes
2answers
167 views

Transforming geostationary satellite image to lon/lat

The ICARE Data and Services Center distributes the SEV_AERUS-AEROSOL-D3 product in HDF5 format (http://www.icare.univ-lille1.fr/archive/?dir=GEO/MSG+0000/SEV_AERUS-AEROSOL-D3.v1.03/). The main ...
0
votes
0answers
50 views

Call gdal_proximity() from R

I have a raster including eight land cover types (pixel values ranged from 1 to 8): > r class : RasterLayer dimensions : 9887, 30532, 301869884 (nrow, ncol, ncell) resolution : 10, 10 ...
3
votes
0answers
36 views

How do I rotate a coordinate system (ArcGIS/GDAL driver)?

I am trying to get oblique tiles into a mosaic dataset. The tiling scheme works perfectly well for vertical and north imagery (using google tiling scheme) through the GDAL driver, however I am ...
1
vote
0answers
17 views

GDAL compilation to .NET (C#) use

I want compile GDAL library for use in C# program. I use Microsoft Visual Studio 2013. First, I compiled GDAL C++. As a result I have DLLs and libraries (No problems) . Next, I tried to compile with ...
5
votes
0answers
86 views

Different results from GDAL raster attribute table command on mac and windows

I am trying to get the raster attribute table of the following file: Shift_cult_past_current_prediction_20160107_gr1DD.tif available here: ...
3
votes
1answer
39 views

How to create dataset in python with creation options like in ogr2ogr with -dsco options

In ogr2ogr there is dsco option (data source creation option). e.g. ogr2ogr -f DXF -dsco trailer=trailer_buildings.dxf -dsco header=header_buildings.dxf out.dxf test_buldings_shp.shp. It works well, ...
1
vote
0answers
32 views

where to find good GDAL training [duplicate]

Can anyone list out great sources of GDAL training? Books, videos, companies and/or people offering tutoring?
1
vote
1answer
9 views

How do I correct the GeoTransform of a GRIB dataset if I scale/crop the data?

I have modified the GRIB2 data to be cropped and a different size. I'd like to create a new GRIB2 file which contains this modified dataset. How do I calculate the new GeoTransform and create it using ...
2
votes
1answer
38 views

Imagery Band order for Natural and False color imagery

I have an image which has had its band ordering rearranged, giving it a weird false color. I wanted to change it back to a natural color, so I used GDAL and through trial and error got the bands ...
1
vote
1answer
50 views

Seeking C++ api to read/write PostGIS?

I need read/write geometry object from PostGIS. Is there C++ library to do this?
2
votes
1answer
31 views

Discrepancy between GTiff and MEM drivers

I was expecting that both the drivers would behave the same way, except that 'MEM' will not create the file. However, in this test 'MEM' pass, but 'GTiff' does not. Can someone explain why? class ...
1
vote
1answer
31 views

32-bit Map tiles for use with leaflet

I've got a lot of single-band Geotiff files with the GDT_Float32 format and I need to present these over the web, hopefully using a webmap leaflet/mapbox/googlemaps widget where clients can hover over ...
0
votes
0answers
4 views

store the output of gdal_rasterize as a pgraster?

I was wondering when using gdal_rasterize to convert something to a raster, is it possible to store the output raster as the PostGIS raster instead of, say, a tif? For example: I have the following ...
3
votes
0answers
65 views

Visualizing netCDF file with unknown projection

I'm having a tough time visualizing a netCDF file with poor metadata in ArcMap, which is probably not a surprise. I know the file to contain ozone concentrations over the United States. If I try to ...
1
vote
1answer
27 views

Why can't PHP insert new geometry on PostGIS?

(Copied this question from stackoverflow, since it may have more answers here.) I'm using ogr2ogr to upload a GPX file to PostGIS. When I do it on command line (Ubuntu 14.04), it works fine. ...
2
votes
1answer
44 views

Vertical Datum conversion of a raster with gdal

Is there a tool available in gdal to do vertical datum conversion of a raster DEM? I'm looking for a single command line to execute the vertical datum conversion of a raster like the las2las of Liblas ...
3
votes
1answer
72 views

Clip raster by mask layer returns error “wrong number of parameters”

Using Python for QGis 2.14 Essen i try to clip a raster by a Polygon, as indicated here: http://docs.qgis.org/2.6/de/docs/user_manual/processing_algs/gdalogr/gdal_extraction/cliprasterbymasklayer.html ...
3
votes
2answers
45 views

Ogr2ogr is rounding numeric field from PostgreSQL to 6 decimals

I am using ogr2ogr to convert the data from PostgreSQL to GeoJSON. PostgreSQL contains field named shape.area, type numeric, which stores values up to 17 decimal places, like 0.15627328781960101. The ...
2
votes
1answer
41 views

Reverse colour-ramped DEM to its original elevation value?

A have a GeoTIFF LIDAR image which display DEM in its color-ramp version (color relief) from blue (minimum value) to red (maximum value) and green (in between). I don't have the original elevation ...
1
vote
0answers
10 views

Gdal overview creation [duplicate]

I need to generate gdal overview for tif image having parameter value 2 4.but when I run following error shows- Error 4:'example.tif.ovr' not recognized as a supported file format. overviews building ...
3
votes
2answers
84 views

GDAL/OGR ogr.Layer.Intersection fails when producing mixed geometry results

I am trying to intersect layers using the ogr.Layer.Intersection method, in Python. This works fine for pairs of polygons, but I have found intersecting two linestring layers containing matching ...
0
votes
0answers
35 views

How to georeference *.tiff to a given feature geometry automatically?

I´ve got the task to georeference an tiff image to the referencing polygon footprint (Polygon). I have found a lot of ways to do get the footprint from a raster but I could not find a way to use ...
0
votes
0answers
23 views

Gdal overviews issue for tif images in image caching project

we have lots of tiff images having 1 meter resolution, when we start generating GDAL overviews with parameters value 2 4 , it shows an error- Error 4:'example.tif.ovr' not recognized as a supported ...
2
votes
0answers
23 views

Reading raster attribute table using gdal in python

Is there a GDAL function that can read in a raster attribute table? Something functionally similar to this function in pygeoprocessing: ...
0
votes
1answer
60 views

How do I convert a DEM GeoTIFF to Contour Shapefile

I have a digital elevation model as a GeoTIFF and I'm looking to generate a Shapefile of contours with 5m bands on the command line. Is this possible? Ideally using GDAL and Python.
3
votes
1answer
28 views

Problem with algebra formulas for work with gdal_calc.py

I'm trying to update some values of a raster based on another raster. 1st raster (A): landuse data (values from 10 to 240) 2nd raster (B): mask data (only nodata values and a given value, for ...
0
votes
0answers
27 views

numpy.unique: ValueError: all the input arrays must have same number of dimensions

I'm trying to get the unique values of an array but am getting an error that doesn't make any sense. Here is my pseudo code: import numpy as np import gdal # I have a .tif file, call it ...
1
vote
1answer
15 views

Error in opening shapefile located on network

I have been able to successfully open a shapefile using Gdal when it is situated on my local machine. However, when I put the file on another machine on the network and try to open it, it fails. ...
0
votes
0answers
18 views

Read GeoTiff from memory in GDAL

Is it possible with the GDAL library to read an image (e.g. GeoTiff) from a memory stream, like stdin instead of a defined location on the local disk? It would be useful to read data in streaming ...