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

GDAL WMS Question

I'm new to GDAL and am currently trying to hit a WMS using gdal. I need a way to save the image to my desktop. I currently have an xml file with the WMS description syntax that gdal wants -> ...
3
votes
2answers
136 views

How to check which version of GDAL do I have and how many?

I have installed in my computer and running the following software: PosgresSQL 9.3.2.3 PostGIS 2.1.1.1 QGIS 2.0.1 Dufour (this one installed through the OSGeo4w package) QGIS 1.7.0 Wroclaw I am ...
0
votes
0answers
40 views

GDAL - least cost path analysis height data

I would like to use Pythons GDAL bindings to find the least cost path through an array and then show the route on top of the original array. I am using DEM data and would like the slope to be taken ...
1
vote
1answer
215 views

Processing HDF4 data in R

I am trying to process MODIS files in R, which are in HDF4 format (link to data). I have experience reading in HDF5 and netCDF files in R, but HDF4 seems to be a common problem in R. I am using a MAC ...
3
votes
2answers
584 views

How to convert a NetCDF file to GeoTIFF using GDAL

I have a NetCDF file which contains data for the number of rain days in the UK. I'd like to convert it to a GeoTIFF, but can't get GDAL correctly georeference it. See dumps from gdalinfo below. I ...
4
votes
2answers
214 views

how would one get the end points of a polyline?

I am attempting to write a script to get the end points of a series polylines, and then use those end points to create a polygon. I'm not sure which tools to begin to use on this project. I would ...
2
votes
3answers
107 views

Geotiff reprojection

I am new for GIS programming. I try to change geotiff coordinate system from epsg 32635 to epsg 4326. I used the following gdal command: gdalwarp -rc -s_srs epsg:32635 -t_srs epsg:4326 -dstnodata 0 ...
3
votes
2answers
110 views

Python, GDAL, VRT: help wth code efficiency and processing time

I'm going to attempt to make this question as succinct as possible while still including relevant information, as I have trouble with being concise and am trying to avoid writing unnecessary stuff. ...
1
vote
1answer
79 views

How can I use the proj string in java code?

I want to do projection from UTM/oblique mercator CRS to WGS84. And I know the solution to use a proj.4 string in commandline like+proj=omerc +lat_0=51.4 +lonc=7 +alpha=-10 +k=1 +x_0=0 +y_0=0 +gamma=0 ...
0
votes
0answers
30 views

Installing GarminCustomMap: “missing _gdal_array module” error

I've used the GarminCustomMap plugin in QGIS 1.8 without troubles. But now, with QGIS 2.0, when I try to install it, I get the following message "missing _gdal_array module". Any idea how to fix this? ...
1
vote
1answer
138 views

how to create CF-compliant NetCDF from ESRI Grid?

been trying to make a CF-compliant netCDF file from an ESRI Grid. I want to serve it w/the THREDDS server. Been using gdal_translate. I know the netcdf output option is definitely not CF compliant, so ...
1
vote
1answer
86 views

Trying to build GDAL with ECW SDK 5.0 on Windows

I'm using Visual Studio 2010 to open and build the GDAL 1.10 source (using the "makegdal10.sln"). This builds without an issue. Now I want to include the ECW support by including the ECW v5.0 SDK ...
0
votes
0answers
59 views

Update a NetCDF file using GDAL

I have to edit a NetCDF file using GDAL in C++ code. When I try to update a subset I have this error message: ERROR 6: The NETCDF driver does not support update access to existing datasets. How can ...
3
votes
2answers
154 views

Merge two rasters with no data value

I have two rasters: Raster A and B. Raster A has has only values of 0. The white area in Raster B are No Data values. I want to merge them to one raster (Raster C). So basically I want all pixels in ...
1
vote
1answer
156 views

Why does OGR driver.Open() for File Geodatabase give AttributeError: NoneType object has no attribute Open?

There are a number of existing Questions that hint at a possible Answer to this Question, but none seem to be providing me with the solution to my problem: How to access feature classes in file ...
2
votes
1answer
179 views

“ImportError: No module named gdalsrsinfo” What's the issue?

in the python console I can call import gdal, and gdal is recognized as a module; however, most gdal programs, such as gdalinfo and gdalsrsinfo are not recognized. I checked the GDAL source files to ...
2
votes
0answers
84 views

Zonal Statistics using Gdal and Python

I recently came across a loop_zonal_stats function by @ustroetz found here: Issue Trying to create Zonal Statistics using Gdal and Python.. I am using a (single) polygon shapefile and a raster file to ...
1
vote
1answer
63 views

gdal_grid has some problem with reading vrt file

I am using gdal_grid module(from gdal 1.10) and it has some problem with reading the vrt file. I checked this link but it does not work. gdal_grid problem reading vrt file The command is ...
0
votes
0answers
117 views

Add labels for printed map (GeoTools)

I have some problems with labels for printing map with GeoTools. Next code (with some cuts, code on Scala language) can help me for printing map: val map = new MapContent() val parser = new ...
2
votes
2answers
89 views

How to show only raster attribute table using GDAL?

I have a binary ArcGRID raster (AIG/Arc/Info Binary Grid) with an attribute table. I would like to get only this attribute table but gdalinfo outputs also projection information and bounds and then ...
1
vote
0answers
58 views

Write raster with its attribute table and symbology

I am classifying lots of rasters and I'd like to automate the legend creation and symbology displaying for easy manipulation. Here is the kind of raster I'm dealing with: library(raster) r <- ...
0
votes
0answers
21 views

Is there a way of converting polygon vertices to points using GDAL python? [duplicate]

I have an ArcGIS standard license and I want to convert polygon vertexes to points in a script. Since I don't have a good enough ArcGIS license I've been using ET Geowizards to get the points. The ...
0
votes
2answers
68 views

Is it possible to alter raster values without Arcpy? [closed]

I'd like to be able to alter raster values, through fairly simple equations, without using the module Arcpy. Is that possible? It seems like gdal, numpy, and rasterlang might make this possible but ...
1
vote
2answers
177 views

how to georeference my png using gdal

Hello I have created my own fantasy map, I have the map in a full size png and the map broken down into tiles ( with no geo data ) I installed MS4W and tried to use it to get the georeference data ...
1
vote
1answer
62 views

gdal_merge Sum/Agregation files into single output band

I need to create a single tiff files from several others (each have the same extent and resolution) and the output file need to have a single band containing the aggregated/sum of the values in the ...
0
votes
0answers
43 views

How to assign no value to pixels with (255,255,255)

I have Imagery where I want to replace white edges (255,255,255) with no value. I have used gdal translate within QGIS and put in no value 255 but this give no value to other pixels eg 255,240,200. ...
0
votes
1answer
24 views

Break Mosaic into Large Tiles

I have 607 aerial images of Massachusetts in .jp2 format. They are in a mosaic however I need to break down the 607 images into groupings of 16(4x4) spatially so that I can more easily process ...
4
votes
1answer
184 views

Why is tiff different in epsg 3857 and epsg 900913 in gdal

When I transform tiff from 4326 to 3857 and from 4326 to 900913 in gdal, I get different result(when display in Qgis) eventhough these two projections(3857 and 900913) should be the same. What is ...
3
votes
3answers
301 views

What format and settings to use for aerials photos in QGIS?

Following question which was more about handling Aerials with ArcGIS: Most Effective Format to Manage Aerial Photography for Viewing Only It seems there are 2 major options for storing / resampling ...
0
votes
0answers
74 views

Choose what zoomlevel to read from for mbtiles file in GDAL

GDAL is supposed to read MBTiles files and to do so, it selects the highest zoomlevel available. However, is there a way to choose another zoomlevel? i.e. override the default and go for a lower one? ...
1
vote
1answer
52 views

Is there any way to add an area column to new shapefile created from raster with gdal's polygonize in the same step?

I've been going through a fairly lengthy process of polygonizing very intricate raster images, then creating a new layer with the extra area attribute, so that I can then remove the millions of tiny ...
3
votes
0answers
357 views

Reprojecting WGS 1984 Web Mercator (EPSG:3857) in Python with GDAL

I am reprojecting rasters in python using GDAL. I need to project several tiffs from geographic WGS 84 coordinates to WGS 1984 Web Mercator (Auxiliary Sphere), in order to use them later in Openlayers ...
2
votes
2answers
53 views

Using gdal_merge to create a grayscale mosaic

My gdal fu is weak and I need help! ;) I'm creating a mosaic in geotiff from hundreds of ecw. I created a list of all my rasters and used this command: gdal_merge -o c:\temp\output_image.tif -q -v ...
0
votes
1answer
73 views

Need help installing QGIS 2.0 Need GDAL then SQLite3 3.7.16

OSX 10.7.5 I need help installing QGIS 2.0 It says I then need GDAL. When I try to install GDAL it says SQLite3 3.7.16 or newer framework is required. I can't find SQLite3 3.7.16.
1
vote
1answer
96 views

How do I find out the resolution in (centimeters per pixel) of a TIF?

I tried using GDAL and got: # gdalinfo nicholas_map_2.tif Driver: GTiff/GeoTIFF Files: nicholas_map_2.tif nicholas_map_2.tfw Size is 28799, 27875 Coordinate System is: GEOGCS["WGS 84", ...
1
vote
1answer
239 views

Convert polygons in shape file to a numpy array?

I have a shape file containing a number of polygons and all attributes being text. I'm trying to import the polygons into numpy as an array where each polygon is represented as unique values. I ...
0
votes
1answer
142 views

Cannot import gdal_array

I attempted to use GDAL without installing due to not having rights to install on this computer. I managed to get several gdal modules working, but when I attempted to use ReadAsArray() I received the ...
2
votes
1answer
144 views

Access Shapefiles from PostgreSQL/Postgis in R

I successfully setup a connection to my PostgreSQL/PostGIS database on Ubuntu Server from my Laptop (Ubuntu 12.04). Therefore I installed RODBC in R to setup a connection and I made a correct entry ...
0
votes
0answers
41 views

gdalbuildvrt ------— Problems with binary rasters used by grass

r.in.gdal is used for importing tif images in grass environment and they were changed to binary by default. I am trying to make a stack from them but unfortunately grass does not see my rasters ...
0
votes
1answer
92 views

How do I use wildcards to work around the GDAL character limit?

I am attempting to use the 'Merge' & 'Create VRT' tools in QGIS 2.0 on a folder with 3000+ raster tiles in. However whenever I try to perform this operation the following error appears: 'The ...
1
vote
1answer
179 views

How to install the GDAL plugin for QGIS 2.0 on Linux Mint?

What do I need to access the GDAL plugin in QGIS 2.0? I've installed QGIS on my Linux Mint 16 64bit system, but can't access the GDAL Contour tool. The problem seems to lie with my package ...
0
votes
3answers
170 views

Is it possible to use GDAL without admin rights?

I am trying to do some image analysis in Python but am unable to install GDAL due to limited rights. I have attempted copying some of the files and folders into my python folder but am constantly ...
0
votes
1answer
52 views

how to correct merge rasters with different projections? [closed]

how to merge rasters with different projections with correct transforn? For example EPSG:32636 and EPSG:32637 if i do it with gdal_retile command, i have correct view for EPSG:32637 rasters and ...
2
votes
1answer
129 views

How to use Python console under QGIS 2 with gdal module?

I am trying to move my plugin from QGIS 1.8 to QGIS2.0. However, the gdal module cannot use under QGIS2.0. I try to use Python console, typing: import gdal #it's OK gdal.GetDriverByName( ...
3
votes
1answer
104 views

White lines in merged GeoTIFF files after ImageMosaicing on GeoServer

I have merged 21 GeoTIFF images using GDAL utilities. Each image is the result of merging 500 smaller tiles. I am using ImageMosaic in Geoserver but I am getting a mosaic that contains white lines and ...
1
vote
1answer
110 views

Gdal doesn't recognise ArcMap 10.1 EPSG:3857

I have projected a geotiff to EPSG:3857 using ArcMap 10.1 (in Arc it is called “WGS_1984_Web_Mercator_Auxiliary_Sphere”). The coordinate parameters look correct, so why does gdal not recognise the ...
1
vote
1answer
57 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
144 views

Installing QGIS 2.0 with the newest gdal and geos libraries

I want to install QGIS 2.0 on Ubuntu 12.04 LTS. I followed these steps until the final installation command. Before I compiled gdal 1.10, geos 3.4.2 and grass 6.4.3 on my own. In the synaptic ...
2
votes
1answer
106 views

Axis of rendered shape files not showing numbers that are latitude and longitude

I am using rgdal to render some shape file. The first is a set of building zones from NYC Open Data. The second is the NYC coast line from OSM. The Zone files seems to generally render an X axis ...
0
votes
1answer
430 views

unable to upgrade gdal-bin from 1.9 to 1.10 on ubuntu 12.04

I am trying to install import files to cartodb installed on local machine. But import fails with these errors like Error 2001 unable to load data Error 3009 SHP normalization error Also the ruby ...