GDAL is an open source translator library & utilities for raster geospatial 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 useful commandline utilities for data translation and processing.

learn more… | top users | synonyms

5
votes
1answer
211 views

GDAL.RasterizeLayer not ported to the C# bindings?

I am trying to use the OSGeo.GDAL.Gdal.RasterizeLayer(…) from GDAL 1.9.2 and it requires some SWIGTYPE parameters: OSGeo.GDAL.Gdal.RasterizeLayer( OSGeo.GDAL.Dataset dataset, int bands, ...
4
votes
1answer
243 views

How to create tiles with points from MongoDB?

I have a (potentially) large data set stored in MongoDB. Each record is just lat, lon and some float-point value. Each pair of lat and lon is unique, but the whole set is not covering the Earth, there ...
3
votes
1answer
73 views

OGR Info - Check for spatial index?

If we want to get information about a vector layer (shapefile for example) we could use ogrinfo: ogrinfo -so myshapefile.shp mylayer This returns a lot of pertinent information about the shapefile. ...
3
votes
1answer
466 views

How do you open shapefiles with ogr2ogr

I'm following along the D3 tutorial, and on this line: ogr2ogr \ -f GeoJSON \ -where "adm0_a3 IN ('GBR', 'IRL')" \ subunits.json \ ne_10m_admin_0_map_subunits.shp run into the following ...
3
votes
1answer
186 views

GDAL minidriver and Tilecache

I'm trying to use GDAL minidriver to read tiles folders generated from Tilecache seeding. I have set this in my GDAL source <ServerUrl>http://myserver.com/test/${z}/${x}/${y}</ServerUrl>, ...
2
votes
1answer
109 views

USGS GeoTiff extent via GDAL

I have 2006 land cover GeoTiff from the USGS site (for a county in VA, USA). The projection is Albers Conical Equal Area Units. The download came with an HTML metadata file that tells me the geo ...
2
votes
1answer
113 views

gdal_retile question

I have been trying to get gdal_retile working with the --optfile command. At first it did not work because in my files.txt I have '-' characters in the filename. I tried adding quotes around the ...
2
votes
1answer
85 views

Driver Error : DTM to Raster using GDAL_GRID

I am looking to interpolate a DTM (eventually over 4,000 DTMs) that is in a personal geodatabase format. I would like to do this in as few step as possible, eventually writing a batch script to do ...
1
vote
1answer
18 views

Where can I find a python GDAL 1.8.0 package?

I have python 2.7.4 installed on my RHEL 5 machine along with gdal-devel-1.8.0 and gdal-1.8.0. I tried to install the GDAL 1.9.1 package available on python's page ...
1
vote
1answer
20 views

gdal_retile.py tile naming scheme

Is there a way to define custom tile names during a gdal_retile.py process, other than the default _01_01. For instance, suppose I want to start naming my tiles at 100_100, is this possible?
1
vote
1answer
37 views

gdal_retile.py and gdal_translate Requirements

I basically need to use two GDAL utilities: gdal_retile.py and gdal_translate, on a Solaris 9 machine. I have tried compiling GDAL from sources, but this seems not to be working. So, since I have ...
1
vote
1answer
187 views

Slow tiles generation for leaflet js

I am currently trying to use leaflet to display images (jpeg or png) instead of maps, I have followed the instructions on this blog post to create the tiles using gdal2tiles.py here is the code we ...
1
vote
1answer
103 views

can't generate/display signed float values using python/gdal

I'm trying to create a raster with signed float values as the pixel values and display the results in MapWindow on windows. What is the proper gdal band type to use? I've tried both gdal.GDT_Byte ...
0
votes
1answer
28 views

Why gdalwarp cannot make transparent black nodata?

I have a MODIS ariel image geotiff and I want to remove black nodata pixel (this is Aerosol Of Thickness) 1 band image. I've done like this C:>convert -transparent black ...
0
votes
1answer
15 views

python gdal_polygonize error

I am trying to use gdal_polygonize to create a polygon from a binary raster. My code is: os.system('gdal_polygonize.py ' + filename + ' -f ESRI Shapefile ' + shapefile) where filename is a string ...
0
votes
1answer
26 views

Local variance image in python using gdal and a running window approach

I want a local variance image with a 3x3 of a geospatial raster image using python. My approach so far was to read in the raster band as an array, then using matrix notation to run a moving window and ...
0
votes
0answers
45 views

Reprojection problem with gdalwarp

I have a GeoTiff file with WGS84 datum projection and I'm trying to reproject it using gdalwarp. Using this command gdalwarp -t_srs '+proj=tpers +azi=19 +tilt=30 +lon_0=-109.5 +lat_0=23 +h=1274199.4 ...
0
votes
0answers
15 views

How do I add elevation data to a GeoJSON line from a GPX file?

I understand that elevation can be added as an optional third value in Coordinates (lat, long, elev) in a geojson file, but I can't find a way to actually do that from a gpx file. I've used ogr2ogr to ...
0
votes
0answers
22 views

GDAL: add metadata to Bands when creating new GeoTIFF

This is a metadata question :-). I am processing airborne laser scanning full-waveform data to extract information and I store this information by creating a multiband GeoTIFF using GDAL. I will have ...
0
votes
0answers
12 views

Draw Image from GRIB2 file using GDAL

We were using OpenGrads to generate .PNG image for significant wave height from .ctl files (Generated using OpenGrads from GRIB files downloaded from NOAA). Google uses Web Mercator projection and ...
0
votes
0answers
15 views

How to set GDAL/cs2cs/proj to use NTv2 grid shift file when using EPSG codes?

I am using the GDAL API for Python for a script that takes only EPSG codes for inputs to specify source and target coordinate systems. While the cs2cs command seems to handle quite well ...
0
votes
0answers
26 views

Python GDAL/OGR: check lines geometries connectivity

I'm working with shapefiles representing roads, so basically it's stored as (poly)lines. I need to perform a road connectivity checking. In other words, I want to ensure that roads meant to ...
0
votes
0answers
15 views

GDAL Utilties - Multiple Bands with Different Output Types

I have a raster dataset with 5 bands. 4 of the bands are 8bit unsigned and the 5th band is 32bit floating point. I need to clip the dataset into tiles using GDAL (I'm using gdalwarp with a cutline ...
0
votes
0answers
34 views

Installation of GDAL 1.10 in Windows 8 and Ubuntu 12.04

Is there an easy way to install GDAL/OGR 1.10 in Windows 8 and Ubuntu 12.04.
0
votes
0answers
32 views

setup Mapserver WMS from tile files

I'm totally new to Mapserver and I've been banging my head trying to figure out how to mount a WMS server that will seed images of a small geographical area to a OpenLayers HTML page. I already ...
0
votes
0answers
15 views

How to correctly create virtual catalog from rasters with overlapping alpha band in QGIS?

I'm trying to make a mosaic (and then a pyramid) of historic map tiles. Every map tile has a border, I got rid of it with gdalwarp (adding an alpha band and specifying the border, as I stated here). ...
0
votes
0answers
30 views

QGIS GDAL polygonize - how to set scale

I've got some old contour plots, paper copy only, that I'd like to be able to put into QGIS. I get as far as a successful polygonize into shp and it looks fine, but the scale is wrong. How might I ...
0
votes
0answers
31 views

cut tiles with gdal2tiles.py from a png with world coordinate info

I have a collection of PNG files that use the standard google maps projection and have baked into the filename of each the zoom level (all of them are at 22), the x and y pixel coordinates of the ...
0
votes
0answers
16 views

how to stretch GMT raster with gdal to work with google

How can I stretch a PNG raster coming from GMT (Generic Mapping Tools 4.5.6) in such a way that does align with google satellite or bing? such raster is in wgs84 and crosses two UTM zones (17 and 18 ...
0
votes
0answers
19 views

Filled contour plots with gdal

I have values of a certain quantity (concentration) defined on an irregular (georeferenced) grid which I want to visualize in the form of filled contours. Originally, I wanted to create simple vector ...
0
votes
0answers
64 views

using GDAL/OGR (faster)

Eventually, I was able to get the GDAL installed and compiled correctly using Visual C++ 2010. I even tested some of its methods on some geo-referenced raster files, and it looks like that all is ...
0
votes
0answers
17 views

Is it possible to keep tiling and overviews when reprojecting in GDAL?

I have the following script to reproject GeoTIFFs to EPSG:3857 and retile and then create overviews. #!/bin/bash #reproject all ...
0
votes
0answers
37 views

project geotiff to NSIDC Sea Ice Polar Stereographic North (EPSG:3411) with gdalwarp

I a trying to project a signed byte .tiff file (sea ice concentration data) from a uniform unprojected grid (latitudes: -89.875° to 89.875° by 0.25°, longitudes:-179.875° to 179.875° by 0.25°) to ...
0
votes
0answers
25 views

GDAL Error 1: Can't find RasterDMS field in Eimg_Layer with block list

I've got a dataset consisting of an .aux file and an .rrd file with the same names. When I open this data using the GDAL C++ library (applying GDALOpen to the .aux file), the dataset seems ...
0
votes
0answers
20 views

How to fix the SAGA driver is not writing statistics to .sgrd file?

I am converting .img files to .sdat (SAGA) with GDAL 1.9.2 in command line. SAGA driver is not writing statistics to .sgrd file (min, max, mean), which complicates use SAGA_CMD in batch mode (SAGA ...
0
votes
0answers
38 views

Using GDAL/OGR exes in php

could you point me in the next logical direction? I wanted to use the gdal and run the exe commands through my web application, but have no clue what the next step should be after running the ...
0
votes
0answers
53 views

Converting different zoom-level GeoTiff to tms

I have several GeoTiff images I want to convert to a TMS structure of .png files. The GeoTiff images are different scale maps of an area (1:10000, 1:5000, 1:2500) with increasing detail level. How ...
0
votes
0answers
137 views

How use thin plate spline transformer to wrap image in c#

I'm new at programing with GDAL C#. I need to geotransform raster image (using GCP's) and bring it to the Merkator projection. With FWTools I can do this by using gdalwarp -r cubic -tps after ...
0
votes
0answers
94 views

How to re-project the EASE (Equal Area Scalable Earth) grid with a ~25 km cylindrical projection to WGS84 0.25 degree?

I have nc files ,here is one file https://echange-fichiers.inra.fr/get?k=LUfqiyO1Dl7az5bihnS. from the metadata ,the projection is cylindrical and the resolution is 25 km: ...
0
votes
0answers
81 views

Regional statistics from a dataset (point inside a polygon aka region)

I am relatively new to GIS and I am trying to do some geographical analysis on same data I've collected. The dataset I have consists essentially in a file with the following format: ...
0
votes
0answers
38 views

Use Overviews to Select Area of Interest in Very Large GIS Rasters/Images (e.g., GeoTiff's)

I am working with large images in Python and Gdal on a Windows machine and wondering if it is possible to directly access the specific smaller overviews I built into them using gdladdo. I am viewing ...
0
votes
0answers
124 views

OGR-Driver GML axis order handling (GDAL, QGIS)

By default the OGR-Driver will swap the axis order to longitude, latitude for geographic coordinate systems. "Since OGR 1.8.0, the GML driver has coordinate system support. This is only reported ...
0
votes
0answers
21 views

How to select a subwindow from a source image in EPSG 3857?

I need to select a subwindow from an image projected to epsg 3857. If I use, for example: gdal_translate -projwin ${UL_x_3857} ${UL_y_3857} ${LR_x_3857} ${LR_y_3857} source_3857.tif ...
0
votes
0answers
68 views

White nodata values instead of black

I have a problem. I cut a map on tiles using gdal_csharp.dll library (working on gdal_retile.py script rewritten into C#). Everything works fine except one case. When I cut areas with nodata values ...
0
votes
0answers
31 views

slow data display

I am using C# windows application to display S57 dataset through dotspatial. Display is working fine for small amount of layer data. But when it comes to area which has large amount the application ...
0
votes
0answers
78 views

How can i apply stretch to MinMax to the channels of image using GDAL

in Qgis i set Min/Max values of rasterband, to apply the chnage to the image channels i developpe this code in c++ but no thing has changed in image: GDALDataset *ptRasterDataSet; ptRasterDataSet = ( ...
0
votes
0answers
76 views

SAGA grid VRT, file how to apply a LUT?

I've created a heap of saga grid files for some hydro survey work. I'm looking at a way to read these into a mapguide raster/grid layer, I'm able to load up the grids using a vrt file, I can't figure ...
0
votes
0answers
328 views

How to add ECW support to GDAL bundled with PostGIS Windows

I'm currently trying the new raster functionalities of PostGIS 2.0 and I successfully imported some GeoTIFF file into PostGIS (although it only find one band so it's all black and white for some ...
0
votes
0answers
637 views

Oracle Spatial connection : gdalplugins 1.8 and Quantum GIS

I am wondering what's going on behind the scenes in the gdalplugins for Oracle Spatial: gdal_GEOR.dll and ogr_OCI.dll. I assume MDSYS.ALL_SDO_GEOM_METADATA and MDSYS.ALL_SDO_INDEX_INFO are read ? ...
0
votes
0answers
233 views

QGIS GDAL integration of new version

Somewhere else on this forum ("How to access file geodatabase in Qgis?") someone asked how to access data from an Esri file geodatabase in Quantum GIS? One of the answers pointed to ...