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

2
votes
1answer
478 views

Simple band arithmetic on GDAL virtual rasters (VRT)

I want to calculate the difference of two bands. I have the individual bands stored somewhere, but I was thinking that maybe there's a way of producing a VRT file that is the result of this ...
2
votes
1answer
157 views

ArcGIS Geoprocessing Script - Calling External EXE Works in Desktop - Causes GP Service to Quit Abruptly

I have an interesting problem on my hands... I have a generic python script that does a bunch of geoprocessing functions using the standard arcgisscripting module (Yes, I am still at 9.3.1). At one ...
1
vote
1answer
518 views

Seeding Tilecache with gdal2tiles output

Very simple question. I've executed gdal2tiles against a GeoTIFF coverage, composed by several TIFF files. I want to serve the resulting tiles using TileCache. In the TileCache documentation, I see ...
2
votes
1answer
1k views

Tiling rgba geotiffs using vrt rather than gdal_warp

I've carefully cut the collar off a set of USGS geotifs and I'd like to run through them with gdal2tiles but producing a vrt that undersands the alpha layer, or having gdal2tiles overlap two source ...
6
votes
2answers
688 views

Can I change the GDAL/OGR library that QGIS uses?

I have been adding a new format to OGR, all seems well and OGRInfo works. Now I would like to test my code out using QGIS. Is there an easy way to switch which GDAL lib QGIS uses on a windows box? ...
0
votes
1answer
1k views

Import Error while Importing osgeo package [duplicate]

Possible Duplicate: How to install GDAL with Python on windows? I have downloaded Fwtools for python2.5 from http://fwtools.maptools.org(windows installer) after installing it, it was ...
7
votes
2answers
571 views

TRI, TPI, or Roughness

I am working on a site selection projection where I will be unable to perform any in situ observations. A key component of the selection process is the ruggedness of the underlying terrain. I plan ...
13
votes
2answers
1k views

Good practice for generating contours from a DEM

We have just received a large set of DEMs at work and I would like to generate contours from them. The DEMs have a resolution of 1m and a size of 1kmx1km. Output from gdalinfo: Driver: ...
1
vote
0answers
136 views

Geoserver Custom CRS IAU_Moon_2000

I am trying to setup a custom basemap using a GTiff in the IAU's Moon2000 projection (30100 or 30101). The basemap image was originally created through gdal_merge and gdalinfo returns the expected, ...
5
votes
2answers
1k views

Converting Ordnance Survey raster maps to WGS84 webmap tiles

I would like to generate Google/Bing-like map tiles from Ordnance Survey's 1:25000 and 1:50000 raster maps, which are provided as 4000x4000 UK national grid tiles (GeoTIFF). A sample tile can be ...
2
votes
1answer
597 views

gdal2tiles problem

Im using the following to try to produce a tms tileset: gdalbuildvrt test.vrt *.tif gdal2tiles -p raster --zoom=0-6 test.vrt out Two tifs work fine, more than that and it seems to miscompute the ...
4
votes
1answer
442 views

Is it possible to create color tables for floating point raster maps in GDAL?

I've got a script that dumps a floating point raster that I'd like to automatically color. Currently I load this raster in Arc or QGIS and manually create a color table every time I re-run my model. ...
2
votes
1answer
448 views

How to determine area of pixel in meters with GDAL and Python?

I have a raster loaded in Python using GDAL bindings. I'd like to be able to determine the area of a pixel in meters although I'm not confident that the projection is in meters. On this page I see a ...
7
votes
1answer
834 views

Building GDAL With Read/Write Support of FileGDB

Has anyone been successful in building gdal with read/write support of file geodatabases? I am able to build successfully, just never see FileGDB as in the supported vector formats. Here is what I ...
3
votes
1answer
439 views

Want to use GDAL in Arc10 toolbox via subprocess call

I'm attempting to launch a version Python 2.5 that supports GDAL from an ArcGIS10 toolbox script. I'm doing this because I'm having loads of trouble importing the GDAL library directly into Arc, and ...
5
votes
2answers
2k views

GDAL Python bindings not picking up OGR PostgreSQL driver

I have a windows server (Microsoft Windows Server 2003) with: Python 2.7, PostgreSQL 9.04-1, GDAL 1.8.1 (installed from the windows installer (gdal-18-1500-core.msi) hosted at ...
1
vote
1answer
293 views

How to aggregate points with same value into polygons from a shapefile using GDAL or any other opensource solution

I have a shapefile with around 19,000 points. Its basically export from a raster. No i need to extract polygons, by aggregating the points which have same value.The field who's value i am going to use ...
4
votes
2answers
252 views

Finding Raster Overlap within a Directory

Here is the scenario: I have a directory with 100+ map projected, single band, rasters that weighs in a 40GB+. I have used ArcMap's built-in mosaicing tools to create a raster mosaic. I am using a ...
2
votes
1answer
204 views

QGIS 1.7 + MacOS 10.6 : georeferencing from map canvas bugs

I am experiencing issues with the gdal plugin to georeference a raster. It works fine when I enter the coordinates manually but it does not work when I try to link the plugin with the map canvas. ...
5
votes
5answers
1k views

Python, shapely library: is it possible to do an affine operation on shape polygon?

I am trying to create a rotated rectangle in lat/lon coordinates. Basically I have the coordinates of the center and rotation angle around the center. Is it possible to do using, shapely or gdal, or ...
5
votes
1answer
321 views

How to label raster cells in QGIS?

I try to show a small resolution raster file in the QGIS Print Manager tool. I would like to show a small label with each cell value (position - circa middle of each cell). How I can do it? Is there ...
1
vote
3answers
3k views

Convert Lambert Conformal Conic to WGS84

I am trying to convert my "Lambert Conformal Conic map with 2 standard parallels" to the basic/standard WGS84 projection that Google Maps use. I have 30 of these maps which I need to convert. They ...
3
votes
1answer
2k views

Georeferencing with Quantum GIS and reprojecting to EPSG:900913

I'm trying to reproject a map to EPSG:900913 The image I'm reprojecting is the following http://i.imgur.com/HmfLW.png I'm using the cities as reference points obtaining the coordinates from Google ...
3
votes
2answers
235 views

What projection is this in GDAL classification

I need to re-project a PNG from a given projection to the Google maps projection. I have a grid of the source projection, looks like a Mercator projection. What is the exact name of this projection in ...
4
votes
1answer
1k views

GDAL - creating vector from raster

[SOLVED] Good day! I'm looking at either gdal_contour or gdal_polygonize.py to create a vector layer file from a raster file. I can create the vector file using either method, but it's upside down ...
5
votes
2answers
2k views

Geoserver 2.1.1 with ECW support

I am trying to add ECW support into Geoserver 2.1.1 (also tried 1.7.7) but no luck so far. Does anyone have a step by step guide to add the ECW support ? (the one However, my understanding is that ...
1
vote
2answers
2k views

Get extent of Georeferenced Rasters in Python and output to polygon shapefile

I would like to create a shape file containing the extents of each of the rasters in a directory. Is it possible to capture the extent of a raster using Python? I have tried ...
3
votes
1answer
274 views

Polygon Shared Boundaries in GML

Last week I was told on a phone conference that GML supports shared boundaries in Polygon's. I have been unable to find any documenatation to substantiate the claim. Here is the situation: I have a ...
0
votes
1answer
240 views

Tiling failing near the end of generating base level tiles

I have a GeoTiff file that I have created by using the command: gdal_translate -gcp <my gcp> -a_srs <my wkt file> input.tif output.tif Note that I have twelve -gcp options set on the ...
4
votes
2answers
398 views

What alternatives to Orfeo are out there and what are the pros and cons of each?

I'm interested in using a library for abstracting the common, repeatable tasks that entail the usage of GDAL (like registiring a driver, getting bands.. etc). In general, GDAL is "low-level" and most ...
2
votes
3answers
1k views

Read KML file with GDAL/OGR for Python

I have file : test.kml and I try to open it with GDAL/OGR (1.6) librairie in Python (2.5). But I don't succed can you help me ? This is my code : from osgeo import ogr adresse = 'test.kml' ...
3
votes
2answers
705 views

Overlaying GPX data on rasters in QGIS

I have a series of raster map images that I would like to use in QGIS and overlay some simple GPX routes over the top to produce a custom map image. This is all quite new to me so please bare with ...
19
votes
3answers
4k views

What is Lanczos resampling useful for in a spatial context?

GDAL includes a resampling method beyond the normal mix of nearest neighbor, bilinear, cubic and splines: "Lanczos windowed sinc resampling". I understand that its a convolution filter, but unlike ...
3
votes
1answer
973 views

GDAL ECW Support on OSX

I have a large number of ECW format raster images and would like to use with GDAL (and ultimately in QGIS) on Mac OSX. Having seen that there is no official ESRI support for the ECW library on any ...
2
votes
2answers
758 views

Is there any way of merging two sets of tiles with gdal2tiles?

I've executed gdal2tiles against 2 raster coverages: One big raster coverage, composed by several TIFF files. Example of tile: http://dl.dropbox.com/u/6599273/319.png One single TIFF file, ...
1
vote
1answer
287 views

gdalwarp - strange result

I have an input jpg image (sat thumbnail) and I know a number of gcps for this image. I want to reproject the jpg to have a north up image. This is what I do: ./gdal_translate -of GTiff -a_srs ...
1
vote
2answers
917 views

Automate creating Rectified files from georeferenced images

A python 2.6.5 / ArcGIS 10 solution is preferred. UPDATE: I found a tool to do this "Create Ortho Corrected Raster Dataset" but the python script for it gives errors when I try. import arcpy import ...
1
vote
1answer
269 views

How to reproject a noaa bsb nautical chart?

I have some nautical charts in .BSB format. GDAL can read bsb and I successfully imported them to qgis. But I can't figure out what is the coordinate system they use. Does anyone has some experience ...
5
votes
1answer
2k views

Extracting Lat/Lng from Shapefile using OGR2OGR/GDAL [closed]

I'm trying to extract lattitude/longitude values for the streets in this shapefile: http://gispub02.sfgov.org/website/sfshare/catalog/stclines_streets.html I've seen it reommended in many places that ...
2
votes
1answer
737 views

How to provide transform information to openlayers on Image layer

I would like to include an overlay raster layer into my OpenLayers map. I've pre-transformed the image into the correct projection (EPSG:900913) and saved as a png using the gdal_translate command: ...
2
votes
2answers
2k views

GDAL tools for QGIS on OSX - what is the exact directory for gdal binaries?

When I try to use the gdal raster tools, eg clipper, I get the message "The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the ...
4
votes
2answers
966 views

Translating grid to USGS .dem in C# via GDAL

I am attempting to translate ArcInfo binary grids to USGS DEM format (.dem). I have installed the GDAL .NET bindings thru this build installer. I can get to GDAL in my C# add-in I am working on. ...
14
votes
3answers
6k views

What's the easiest way to install GDAL and OGR for Python?

I am developing some code in Python, and I want to use the GDAL/OGR python bindings. What is the minimum I need to install in order to use the GDAL and OGR python bindings? What is the easiest way to ...
1
vote
0answers
278 views

gdal-grass plugin for gdal 1.8 [closed]

I'm facing a big issue...i moved from the ubuntugis version of grass to the svn one. I managed to compile the svn (releasebranche6.4) version nicely but i can't download the gdal-grass plugin for ...
6
votes
1answer
942 views

gdalwarp, cutline and postgis

I can not figure out how I directly can read a polygon into gdawarp's -cutline argument. My current approach is: ogr2ogr -f "ESRI Shapefile" mydata.shp PG:"user=myuser dbname=gisdb" -sql "select * ...
1
vote
1answer
510 views

Problems with gdal1.8 Java bindings gdal.ReprojectImage, produces no data

I have a problem with gdal.ReprojectImage from gdal1.8 Java bindings. When I perform the reprojection, the projected image is totally black. And the origin of the projected image is wrong too. There ...
5
votes
1answer
841 views

Specify directories for use with gdaltindex

I'd like to use gdaltindex to create a polygon shapefile of thousands of georeferenced .tif documents. I've found this incredibly easy to accomplish in a single directory on Linux (e.g. gdaltindex ...
8
votes
6answers
861 views

How do I generate thumbnails images from lots of shapefiles?

A colleague and I recently released an Open Source project called Mapoteca which is a set of Python Scripts that integrates with a GDAL/FWTools installation allowing a full walk-through of directories ...
2
votes
1answer
767 views

gdal_grid problem reading vrt file

I am trying to parse csv file and visualize it as geotiff using gdal_grid but I keep getting this error: C:\work\testgdal1>gdal_grid -ot Float32 -l test test.vrt dona.tif ERROR 1: Failed to ...
6
votes
2answers
411 views

Visualize text file with location info and intensity

I have an ascii text file containing location data (column 9-lat and 10-long) and intensity(column 20) 200010 207 020311 40658.5 406593 52 344927.31 7100203.50 -26.2078720 127.4491855 ...