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

1
vote
0answers
54 views

Storing non-orthorectified images in GeoTIFF

I'm reading GeoTIFF and GDAL documentations and I'm trying to understand what type of transformations are supported. GeoTIFF documentation says you can use ModelTransformationTag to define a ...
0
votes
0answers
18 views

Converting USGS (2010) GeoPDF to GeoTIFF

I'm having problems on coming up with Topo maps by converting USGS 2010 GeoPDF Maps to GeoTiffs (while removing the Orthoimage). I'm currently using GDAL in the conversion process. What happens is ...
0
votes
1answer
39 views

Converting Shapefiles to KML and extruding on height

I am working on a free/open source workflow to ingest OSM data and convert it to a KML so I can view it in 3D with Google Earth. I used ogr2ogr to convert to a shapefile and have extracted the height ...
3
votes
0answers
112 views

MODIS R Package: GDAL Not Available

I am trying to analyze the MODIS EVI 250m, 16day dataset. I found the R MODIS package and am following the instructions here: https://conservationecology.wordpress.com/2014/08/11/bulk-downloading-and-...
2
votes
1answer
58 views

How to display this map in QGIS

I downloaded a map with a .tif, .tfw, and .xml file. I can't get it to display in QGIS. I used geotifcp -e to create a GeoTIFF. I tried Lambert Conformal Conic since it was mentioned in the .xml. Hard ...
1
vote
0answers
18 views

Local Maxima (or Pour Point) Pixel Value extract in Raster

I am doing watershed & pourpoint using python GDAL. I have calculated Fill, Flow-Direction & Flow-Accumulation using Python & GDAL. The next is to get Pour Point in certain window ...
0
votes
0answers
29 views

intersect geotiff with bbox

In a project using gdal I need to crop a geotiff file with bbox in pixel or coordinates epsg:4326. This step is ok. The next step is to manage cases where the image size is "lower" than the bbox size ...
0
votes
0answers
17 views

mosaic/reprojection/conversion order of operations

I'm writing a python/gdal program that ingests HDF4 files and: 1) Converts subdatasets from HDF4 to GTiff using gdal_translate 2) Mosaic's the new Gtiffs using gdal_merge 3) Defines the ...
2
votes
0answers
63 views

Is there a good example of using GDAL_WMS to add an authenticated TMS layer to QGIS?

I've been trying to add a TMS layer in QGIS using a GDAL_WMS xml configuration file. I added UserPwd to the xml and this seems to provide the authentication required by GeoServer but I'm struggling ...
0
votes
1answer
52 views

Applying Attribute Filter and Spatial Filter simultaneously (GDAL - Python)

quick question on something that has to be simple, but I'm getting stuck on. I want to use an Attribute Filter and a Spatial Filter simultaneously. I have two vector files (an overlaying grid and a ...
2
votes
1answer
33 views

Transformation from EPSG 2178 to EPSG 4326 gml.file?

How can I transform .gml file from EPSG 2178 to EPSG 4326? I used the following without success: gdaltransform -s_srs EPSG:2178 -t_srs EPSG:4326 "file1.gml"
0
votes
0answers
85 views

Error installing GDAL for Python on OSX

I'm trying to install GDAL for Python on my mac (OSX 10.9.2). I did: >>> brew install GDAL and got: >>> 🍺 /usr/local/Cellar/gdal/1.11.3_1: 230 files, 33.1M now: >>>...
1
vote
1answer
235 views

Installing QGIS using Homebrew

I've been unsuccessfully trying to install QGIS using Homebrew (used Homebrew to install GDAL and GSL) as outlined here My OS is Mac Yosemite, 10.10.5. The installation sort of finishes, but with a ...
0
votes
1answer
22 views

How to set coordinate dimensions in Django GDAL API?

The Django GDAL documentation for coord_dim says: coord_dim Returns or sets the coordinate dimension of this geometry. For example, the value would be 2 for two-dimensional geometries. But how do ...
0
votes
0answers
84 views

Converting lat/long to image pixel coordinate and vice versa using gdaltransform with image and its RPC file?

I am a new user of gdal. I am having a image (.tif) and its corresponding RPC file (.txt) How to convert lat/long to image pixel coordinate and vise versa using gdaltransform with the image and its ...
1
vote
0answers
58 views

error using gdal_translate with -projwin option

I have to crop geotiff image, I'm using gdal assembly and I'm trying to use the gdal_translate method If I crop my image using the -srcwin option all is fine gdal_translate -srcwin 0 0 400 400 ...
0
votes
0answers
37 views

Overwrite the mosaic raster generated using gdal_merge.py?

Is it possible to overwrite the raster generated using gdal_merge.py? When I ran the command: % gdal_merge.py -init 255 -o out.tif in1.tif in2.tif it works fine, but if I ran the same command and ...
3
votes
1answer
67 views

Importing ESRI shp / gdb files with M value into Postgis

Has anyone done this successfully? I have been using DB Manager in QGIS 2.12 and my MutilinestringM values are converted to Multilinestring in PostGIS. When I use the PostGIS shapefile importer, this ...
0
votes
0answers
32 views

gdal.SaveArray returns Received a NULL pointer

I am saving my 2D array into a raster data using GDAL but could not get it to work properly. I am using the gdal.SaveArray option and it returns ValueError: Received a NULL pointer. I think I used it ...
3
votes
1answer
76 views

Build a table with columns of raster values from multiple raster datasets, using Python, GDAL, or PyQGIS?

I have a series of raster datasets, clipped to the same extent, with matching cell resolutions, each of which represent land surface temperatures (LST) captured by the MODIS sensor. Each raster ...
2
votes
1answer
79 views

aggregating using 'gdalwarp -average' resulting in incorrect values

I'm trying to aggregate data up from 0.05 to a coarser 0.25 resolution and am having trouble getting gdalwarp to work correctly. From comparing the original input data with the aggregated data and ...
3
votes
0answers
31 views

gdal_translate multiple GDAL_PDF_LAYERS_OFF entries gives error

The documentation says that GDAL_PDF_LAYERS_OFF takes a list of comma separated layers. Examples look just like what I am trying to do. Executing the following gives an error FAILURE: Too many ...
3
votes
1answer
69 views

ogr2ogr batch load shapefiles into geodatabase

I'm trying to load a directory of shapefiles into a geodatabase with ogr2ogr. It works fine if I specify a single shapefile, but can't open the datasources if I specify a wildcard. Is there a wildcard ...
2
votes
1answer
40 views

Using gdalwarp to remove one row of pixels or add one row of pixels

I am trying to use GDAL_calc but my two rasters are off by one pixel in the y dimension. One is 256005 the other is 256004 so GDAL_calc fails with a multiplication. Is it possible in gdalwarp to ...
1
vote
1answer
72 views

gdal_merge not working in GDAL 201 windows install

I realise this looks like a duplicate of http://stackoverflow.com/questions/31174320/gdal-merge-py-not-working-after-gdal-and-it-python-bindings-have-been-installed, but I think the problem is a bit ...
2
votes
2answers
68 views

MODIS MOD11A1 Reproject Change Data Value

I'm import and reprojected MOD11A1 with GDAL 1.10....my shell script is easy.. for file in *.hdf; do echo "map: $file" gdal_translate -of Gtiff -ot Int16 HDF4_EOS:EOS_GRID:"$file":...
1
vote
0answers
31 views

Flipped (Y-axis) Raster from point cloud

I have been working on a project where I need to create rasters from irregularly spaced point clouds. I am resampling my point clouds to a regular 0.25 cm grid using a nearest neighbor method ...
1
vote
0answers
43 views

How to correctly rasterize a polygon which crosses 180E longitude?

I want to rasterize a polygon wich crosses 180E lon with gdal_rasterize. The polygon is in the WGS84 projection. I used the following command: gdal_rasterize -burn 1 -of GTiff -ot Byte -ts 1500 ...
2
votes
0answers
27 views

failed gdal script from QGIS Georeferencer using Thin Plate Spline (TPS)

I'm trying to georeference a photo using QGIS Georeferencer plugin (this is an oblique photograph. I know I should be using a proper georectification routine, but my current work now is just to simply ...
2
votes
0answers
182 views

gdal/python: tif not recognised a supported file format

I'm trying to open a tif using gdal, read it as a array, do some math, and write it back as a tif. However, when I try to gdal.Open(tif) in python, I get the error: RuntimeError: /att/gpfsfs/...
1
vote
1answer
45 views

how to read a specific overview layer from GeoTIFF file using GDAL / Python

I know how to create the overviews to a specific geoTIFF file using GDAL ( i have tested it in QGIS), but i cannot find any good information on how to read these overviews individually in python. ...
-1
votes
1answer
38 views

Convert all geo TIFF in a directory in ASCII [duplicate]

I would like to convert all geoTIFF in a directory in ASCII with the use of a command like gdal_translate -of GTiff... in OSGeo4W Shell. Is this possible?
1
vote
0answers
29 views

GDAL with PostgreSql LIST_ALL_TABLES fails (no it doesn't) - SOLVED [closed]

I have compiled GDAL 2.0.0 and am accessing a PG database. I note that the online documentation has two options available with the word "TABLES" in it. I think the logic in the code isn't handling the ...
0
votes
0answers
42 views

Mapserver mapfile reading problem at maximum zoom level

I have created a mapfile for cartosat Raster data(B/W) which is working in browser fine but after zooming to maximum it is throwing an error as follow drawGDAL():unable to acess file ...
1
vote
1answer
100 views

GRIB to NetCDF with GDAL, specifying dimensions

I have a GRIB dataset representing temperature over North America, in Lambert Conformal Conic (with specified central meridian, latitude of origin, etc.). It has what should be understood as a ...
2
votes
1answer
50 views

R gdalUtils::ogrinfo error or very slow

I am pulling WFS data into R and using gdalUtils::ogrinfo to look at the available layer names on a WFS server. Using the same url in QGIS, this is very fast and gives complete information. With ...
2
votes
1answer
40 views

org2ogr PostgreSQL to GPX

I already have found how to import GPX files into PostgreSQL using gdal/org2org. Now I am wondering of dumping into GPX files the results of my modification on dataset stored into PostgreSQL. But I ...
4
votes
0answers
91 views

QGIS/OGR shp to tab export - crashing Mapinfo due to number format issues

I created a vector grid in QGIS and it exports as SHP -no issues. When I save as tab and try to open the file in MapInfo it crashes. According to https://groups.google.com/forum/#!topic/mapinfo-l/sO-...
0
votes
0answers
29 views

Image pyramid with transparent pixels

I have a GeoTiff image which I wan't to use to build tile pyramid and serve it via geoserver. In most cases it works well but fails to publish a layer if tiled images have NO_DATA (transparent) pixels....
1
vote
0answers
29 views

How delete feature from layer using Gdal binding java

I am trying delete one feature from layer using GDAL in java https://trac.osgeo.org/gdal/wiki/GdalOgrInJava But nothing happens. ogr.RegisterAll(); Driver driver = ogr.GetDriverByName("ESRI ...
0
votes
1answer
50 views

GDAL Python: how to extract a cutline from VRT file in world coordinates?

I'm trying to extract the world coordinates of a cutline (clipping polygon) in a GDAL VRT file. Unfortunately, the cutline is stored in image coordinates (pixels), and i could not find the right ...
1
vote
1answer
19 views

How can I create an aggregate GDAL dataset with a specific ordering for overlapping regions?

I have a number of raster datasets (with common projections, pixel sizes, and pixel alignments) that I want to mosaic into a single dataset. The source datasets overlap in a number of areas; in those ...
2
votes
1answer
41 views

Encode an azimuthal equidistant projection in NetCDF conversion

I'm trying to do Azimuthal Equidistant in CF-compliant NetCDF, but I didn't get the correct projection. If you compare the first two information (gdalinfo) you see there is no AUTHORITY and also ...
1
vote
0answers
24 views

gdal_retile — force full tiles?

I have a set of large geotifs (DEM + orthoimagery) that I need to generate image pyramids from. So far gdal_retile from osgeo4w is working very well for my use case with one exception: I need all my ...
1
vote
1answer
99 views

Can't write decimal data into shape (shp) attribute table with Python

I am trying to create a shapefile with Python GDAL/OGR library. I add to it a real number field, but when I write into it doesn't appear as it should but rounded. I will explain better with the code: ...
1
vote
0answers
66 views

undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'

I am trying for the first time to use gdal in Ubuntu 15.10 with gcc. I call gdal.h in my program. At first I got the error "undefined reference to `GDALOpen'", so I check online and I found that I ...
0
votes
1answer
63 views

Analyze height data using a digital elevation map

i ran the following code on python 2.7: import sys, struct from osgeo import gdal from osgeo import gdalconst minLat = -48 maxLat = -33 minLong = 165 maxLong = 179 dataset = gdal.Open("C:\Python27\...
1
vote
1answer
34 views

Keep “no data” tiles as “no data” w/ proximity (raster distance) operation

Working in QGIS 2.8.1 Wien. I have a raster file with three classes: "No data" for tiles outside of the country of interest's bounds "0" for tiles that correspond to roads "1" for all other tiles. ...
1
vote
1answer
154 views

Convert to lat-lon coordinates GDAL

I have a netCDF file and would like to convert it to LAT-LON coordinates. 1) I do not know the projection in the file but from the website of the data provider, the data is on a polar-stereographic (...
0
votes
1answer
104 views

Project NetCDF file using GDAL or QGis

Can I project a NetCDF file with the help of GDAL or QGis? The file info is: gdalinfo c:\tomcat-6.0.36\webapps\ncWMS\layers\RAIN_MM_1hour_ac.nc Driver: netCDF/Network Common Data Format Files: c:\...