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
1answer
28 views

Merge all features in polygon shapefile with gdal

How do I apply using this same concept, but simply merging all features into one? ogr2ogr output.shp input.shp -dialect sqlite -sql "SELECT ST_Union(geometry), dissolve_field FROM input GROUP BY ...
0
votes
2answers
62 views

Can't get gdal_merge Python script to run

I downloaded and installed GDAL. I am using Python 27. I had to use the following commands at the IDLE Python GUI: from osgeo import gdal,ogr sys.path.append('C:\Program Files\GDAL') import ...
1
vote
1answer
22 views

Black image using gdalwarp

Im a geomatics student; Currently, I try to geo-referencing a tif image with the QGIS GUI, and then I load and save the Gdal script. With the QGIS GUI, I managed to get a decent picture, then I ...
1
vote
2answers
861 views

GDAL/proj4 equirectangular projection coordinate system units assumed by OGRSpatialReference and GDALDataset::GetGeoTransform()?

How do I configure my OGRSpatialReference object to specify an equirectangular projection system http://en.wikipedia.org/wiki/Equirectangular_projection where the affine geo-transform matrix (provided ...
1
vote
2answers
39 views

Using ST_Intersects in OGR2OGR

I'm running GDAL 1.11.2, released 2015/02/10. The following displays all the attributes in my shapefile on stdout: /opt/gdal-custom/bin/ogr2ogr -f CSV /vsistdout/ foo.shp -sql "SELECT * FROM foo ...
0
votes
0answers
28 views

Porting Arcpy script to linux cluster machine?

I wrote a series of arcpy scripts, and I am wondering how I can port the feature to Linux cluster machine? I found that ArcGIS server 10.2 runs on Linux machine, does that means I can theoretically ...
6
votes
1answer
465 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, ...
0
votes
0answers
8 views

Skipping the string serialization in json.loads(OGRGeometry::ExportToJson())

I have a for loop that exports a bunch of OGRGeometry objects to a python array in what will eventually become a GeoJSON feature collection. Something like this: features = [] for feature in ...
1
vote
0answers
20 views

Loading Raster with SharpMap (GDAL) doesnt work

i have problems loading rasterfiles (.tiff) with SharpMap I tried initializing a SharpMap GDAL Layer but nothing happens. It doesnt even throw and error when debugging after i set a path for the file ...
1
vote
1answer
784 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 ...
1
vote
0answers
10 views

how can I get the rest attributes like ATTV, ATTL etc. using S57 Reader?

I'm using GDAL to read S57 files to display them with S52 styles, but I was unable to get the attributions like "ATTV", "ATTL"? Do you know how to get it? I have put the two supporting files, ...
1
vote
1answer
393 views

GDal problem “no suitable image found” when I run “ogr2ogr” command

I am trying to run "ogr2ogr" command macbook$ sudo ogr2ogr -f "PostgreSQL" PG:"dbname=test user=postgres" /Users/macbook/planning.gdb But I am getting this error: dyld: Library not loaded: ...
2
votes
2answers
142 views

Invert gdaldem aspect

I am trying to identify lakes and other water bodies in a DEM file. The source file is located here. I am using gdaldem aspect to identify contiguous pixels with zero slope change. gdaldem aspect ...
0
votes
0answers
21 views

QGIS 'Clip raster by mask layer': Problem loading output [on hold]

I'm using QGIS 2.8, currently developing a python plugin and at some point I have to execute consecutive processing algorithms. When it comes to loading the layer created by GDAL algorithm 'Clip ...
1
vote
0answers
87 views

How to build gdal_calc.py from source in MinGW

I was wondering how to build the gdal python binding from source using MinGW. In particular, I need to install python utility scripts such as gdal_calc.py. I've searched around and found this ...
3
votes
2answers
837 views

How can I merge geotiffs with a vrt file?

I have heard that I can use a vrt file to merge mulitple geotiffs into one? what is the syntax? gdal_tranlsate -of VRT file1.tif file2.tif file2.tif Something like this?
0
votes
0answers
11 views

Import error: no module named _gdal_array

I am using python 2.7 and have gdal installed. I want to read an entire .jpg image at once and so I used statement import gdal from gdalconst import * driver = gdal.GetDriverByName('JPEG') ...
1
vote
1answer
359 views

gdal2tiles doesn't use resampling method correct?

I'm using gdal2tiles to create tiles from MODIS satellite imagery (250 m resolution) and I have noticed that I get the same bad result if I use -r near or -r bilinear (or lanczos for that matter). See ...
1
vote
1answer
137 views

How do I set nodata with custom color for gdal_translate and gdal2tilespy?

I start with a bunch of 1-bit geotiff files that I had to convert to 8-bit RGB tiff files to use with GDAL. Then I tried to set borders to red (content is in black and white so I can't use those) and ...
2
votes
1answer
253 views

Read DGN file in java or c#

I'm looking solution to read DGN file in java or c# without any success. Gdal makes many problem and doesn't support all element eg. complex element. Does anyone know of a library that supports the ...
0
votes
0answers
15 views

Trouble installing Rasterio module for python 2.7 on windows

Can anyone please explain to me in step by step instructions how to install rasterio with Python 2.7 on Windows. I have Windows 8 and have tried information on Link I have installed all the ...
3
votes
1answer
236 views

Reading zipped ESRI BIL files with Python

I asked the question below on StackOverflow, but haven't received any feedback there yet: I have precipitation data from the PRISM Climate Group which are now offered in .bil format (ESRI BIL, I ...
1
vote
0answers
37 views

Minidump on exit in QGIS (2.8.2- Wien) 64-bit version when using GDAL in plugin

I am working on a plugin for QGIS that is working fine on 32-bit versions but I am having some problems while using it on the 64-bit standalone installation package. I have tried on several machines ...
3
votes
1answer
167 views

ENVI raster file with nodata change to 0

I have a geotiff that I converted to a ENVI raster file with the following command: gdal_translate -of ENVI srtm_05_08.tif data.bil The geotiff has water values supposedly set to nodata. I am ...
1
vote
1answer
26 views

Gdal ReadAsArray() different values than gdal band statistics

I am confused about why if I open a band with GDAL I get, for example, band.GetMaximun(): 1000, but if I do ReadAsArray I get myArray.max(): 1200 (the same if I do np.max(myArray)). Does someone knows ...
0
votes
0answers
16 views

Error installing GDAL on Centos 7 [closed]

I'm trying to install Postgis/GDAL on CentOS using yum, but there are broken dependencies. I've looked around and everybody says I should install EPEL, but I've already done that. (see also: Install ...
0
votes
1answer
197 views

Read dted with gdal in c++

I need to find the elevation of lat and long point using a dted map. I read that gdal can read this kind of map. I didn't find a tutorial. I read about gdal here but it's not very "user-friendly". Can ...
4
votes
1answer
1k views

GeoTiff convert to PNG with transparency?

I need to convert a GeoTIFF image to PNG format with "NoData" pixels in the original image being transparent in the output. Is there any tool particularly in ArcGIS ArcToolbox or GDAL for this ...
1
vote
0answers
21 views

rasters written with gdal show up with units of meters when they should be degrees

I have some SMOS soil moisture data packaged in a netcdf format distributed by "cp34-bec". I have been able to use GDAL to extract this data as a raster layer, using a projection i think is ...
1
vote
1answer
24 views

Spatial Resolution Reprojection - rom Angular to Rectangular Values with GDAL?

I have an image in a WGS 84 / No Defs projection. I can get it spatial resolutions in angular units for X axis and Y axis through geotransform parameters. If I would reproject this image into WGS 84 ...
0
votes
0answers
22 views

Extracting pixels latitude into new raster [closed]

when extracting pixels latitude into new raster the boundary not matched, what shal in do? # -*- coding: utf-8 -*- #!/usr/bin/env python print("Started\n") import gdal import numpy as np ...
0
votes
0answers
15 views

Why does R(gdal) mangle data when converting to geojson?

I've encountered issues with projections in .geojson files created by rgdal, but I never thought it would destroy my data, until I tried this (reproducible example): ...
1
vote
1answer
153 views

geotiff conversion to coordinate system with gdal

I would like to get the coordinates X Y Z from a geotiff file. I am using the gdal translate for the conversion. Which output format is the more adequate for containing a 3 numpay array X Y Z ?
1
vote
1answer
25 views

Downsampling Geotiff using summation - Gdal/Numpy

I am trying to downsample a 1 square km raster dataset to a much larger (.5 degree x .66 degree) dataset by summing all of the pixel values within this large grid cell. gdal_warp does not contain a ...
0
votes
1answer
26 views

Getting warning when opening NetCDF file using gdal?

I am using windows 7(32-bit) and want to warp NetCDF (nc) files and save the output as GeoTIFF. First I run gdalinfo first to get the info of the subdataset I need and added NETCDF in the ...
3
votes
1answer
382 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>, ...
1
vote
0answers
25 views

rgdal with multiple Feature Datasets in R

I am trying to read shapefiles contained within a geodatabase file (.gdb) into R. The .gdb contains two Feature Datasets with multiple Feature Classes within each. The problem is only one of the two ...
0
votes
2answers
96 views

GDAL clips raster at wrong position

I try to clip raster data with GDAL (in fact I am using QGis, which produces me a command line for GDAL) The raster has been transfored to EPSG:3857, which is also the projection of the shape file ...
1
vote
0answers
23 views

BlueMarble is appearing strange

I am fairly new to WorldWind and want to make WorldWind Server 1.5 server blue Marble Imagery to worldwind 2.0. I am using WMSLayerManager applet to test my server. Blue marble appears strange on ...
0
votes
1answer
30 views

Create ID for each string attribute in QGIS

I'm trying to rasterize a vector layer by using an attribute filed stored as string, I got the confirmation through the GDAL mailinglist serv that gdal_rasterize does not work with string field. So my ...
2
votes
1answer
117 views

smallest, lossless, GDAL ready image format

I would like to know what the smallest file format is I can use with GDAL that fulfills the following criteria: lossless compression (relatively) easy to read/write with GDAL Python bindings least ...
2
votes
1answer
388 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 ...
0
votes
2answers
235 views

Conflicts while installing postgresql9.3-postgis2.1,QGIS and gdal-bin

I want to use postgresql9.3-postgis2.1 and gdal-bin parallel . I have refer instruction here for installing postgresql-9.3 on ubuntu 12.04. I have install qgis from here While installing gdal-bin it ...
0
votes
1answer
26 views

Generating elevation 'database' from NED IMG data

I'm starting to work with the NED 1/3 and 1/9 arc-second data. I've been using gdal in Python and QGIS to do some basic conversions of the raw .IMG data from USGS. My goal is to get elevation data of ...
0
votes
1answer
133 views

Combine overlapping rasters in gdal_calc.py, taking the maximum value from each pixel?

I want to combine 3 overlapping rasters to create 1 raster. Each have the same dimensions, resolution and CRS. I want to populate the new raster with the maximum value from each of the layers. ...
2
votes
2answers
281 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
424 views

Using GDAL to read dted files

How do I get the elevation at a certain point using gdal to read in a dted file? I don't see much useful information out on the web. I'm sorry I should have been more specific. How would I ...
1
vote
1answer
36 views

Where can I find GDAL Python bindings for python 3.4?

Am using python 3.4 for development. I need GDAL python bindings for python 3.4. I have already gone through this site. I can find up to only 3.3?
1
vote
1answer
18 views

Cesium Terrain Builder : Could not open GDAL Dataset

I am trying to run Cesium terrain Builder on Ubuntu 14.04. On running ctb-tile dem.tif I get the error: Error: could not open GDAL datasetERROR 4: `dim.tif' does not exist in the file system, and ...
5
votes
5answers
2k views

Create a ground overlay kml from georeferenced raster

I have a world georeferenced raster (5m resolution, ~4000 x 4000 pixels) that I would like to display in google earth. I am looking for a simple and effective way to generate this kml file. Using ...