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.
0
votes
1answer
35 views
CSV and GDAL 1.10 in QGIS
It seems the GDAL upgrade from 1.9 to 1.10 changed the way CSV files are handled so that I now have a non-functioning QGIS. App hangs trying to import csv data file when previously had no problems ...
1
vote
0answers
19 views
Using gdal to convert from UTM to equidistant lat/lon
I am getting rather confused with converting a UTM gridded dataset into a equidistant/rectangular latlon gridded dataset. Can anybody help me?
I have a UTM set with the following projection:
...
0
votes
0answers
8 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
22 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 ...
1
vote
0answers
26 views
How can I call gdal_translate from Java code?
How can I execute gdal_translate in Java? For example, will something like this work?
gdal_translate "PG:host=localhost dbname='xyzy' schema=public' table='xyz'" "d:\xyx\ab.tiff"
0
votes
0answers
18 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 ...
1
vote
1answer
42 views
GDAL bindings problem with ArcMap 10.1 Python tool
I'm really getting mad with this. ArcGIS sometimes can be so just...irritating!
Forgive me if this question is by any means duplicating this one or similar ones, but I really can't find my way out of ...
10
votes
0answers
80 views
Assign projection to a satellite image
Today I stumbled upon a picture taken from the ISS looking down Europe and it is really beautiful.
So, I started thinking I could add more to the picture. Like world borders, cities, road network, ...
0
votes
1answer
58 views
Is it possible to use GDAL to combine (rather than mosaic) rasters
Is there a GDAL command which can combine multiple rasters so that a unique output value is assigned to each unique combination of input values, like the combine command in ArcGIS?
gdal_merge seems ...
0
votes
0answers
14 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 ...
2
votes
3answers
85 views
How to test if geometry is inside another?
I need to tell whether geometries from a shapefile are inside other geometries or not.
For example, I want to test if there are trees (represented as points in trees.shp) inside the urban areas ...
0
votes
0answers
19 views
Change offset of geotiff file [migrated]
I need to change the offset of some tiff files that I am exporting from Qgis.
Qgis gives them a offset of 0xbd72, while the program I need to load them in to only reades files with an offset of ...
0
votes
1answer
25 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 ...
2
votes
1answer
81 views
convert from HDF to GeoTiff
I am having some problems with the conversion from HDF to GeoTiff.
I am following the steps described in this webpage.
The problem is that I can't find what is the NDVI subdataset name (XXXX) in ...
6
votes
1answer
89 views
How to rename field names in a shapefile?
I need to rename the field names (attributes) in a shapefile. Is there an easy way to do this from the command line?
1
vote
1answer
50 views
Python GDAL: Save array as raster with projection from other file
I have an array of data, and for each datapoint I know the latitude and longitude. I'd like to save it as a GTiff with the same projection as other rasters I have. This is what I've tried so far, but ...
1
vote
1answer
59 views
OGR - Weird GeomType -2147483645 on polygon shapefile
I am trying to import a shapefile (multipolygon) in an app with ogr but I got an error about invalid geom type. If I inspect the data with ogr like this:
datasource = ogr.Open("c:\\temp\\data.shp")
...
0
votes
1answer
55 views
Export KML ExtendedData with OGR2OGR
I would like to export with ogr2ogr the data I have in a kml as ExtendedData
<Placemark>
<ExtendedData>
<SchemaData schemaUrl="#15540_punti">
...
0
votes
1answer
47 views
OGR OSM-driver unable to open datasource
I want to read an OSM file with OGR. I use Version GDAL 1.9.1, released 2012/05/15.
To read a SQLITE file works fine:
$ ogrinfo test.sqlite
INFO: Open of `test.sqlite'
using driver `SQLite' ...
1
vote
4answers
87 views
Get vector features inside a specific extent
The problem:
I have a very large vector layer with many features and a much smaller raster layer in a defined region. I want to get only those vector features which are within the raster layers ...
0
votes
0answers
17 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 ...
2
votes
0answers
51 views
Why do I get different output from gdal2tiles vs. maptiler?
I am trying to generate map tiles using gdal2tiles for an area much larger than MapTiler can handle. However, my tile caches are not showing up on the maps. I checked gdal2tiles by running the same ...
6
votes
1answer
126 views
How to get raster corner coordinates using Python GDAL bindings?
Is there a way to get the corner coordinates (in degrees lat/long) from a raster file using gdal's Python bindings?
A few searches online have convinced me that there is not, so I have developed a ...
2
votes
0answers
26 views
efficiently slicing tiles with gdal C API
Im working a project using the gdal C api(in a block of objective-c) to slice TMS style png tiles. The code currently works, but I'm running into some trouble optimizing to run fast enough for use on ...
0
votes
0answers
61 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 ...
1
vote
1answer
18 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?
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
35 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
1answer
46 views
How to save image to disk with with gdal_translate?
I do:
import os
from gdal import *
filename = 'c:/rast.jpg'
outputTif = 'c:/rastOut.tif'
os.system('gdal_translate filename outputTif')
but it returns "1".
gdal_translate doesn't save the image ...
0
votes
1answer
97 views
Any Open source georeferencing library? [closed]
I am using VS 2010, and I want to see is there any open source (preferably c++) library that can be used for georeferencing?
I came across GDAL and QGIS, but I have the hardest time to get them ...
1
vote
1answer
31 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 ...
0
votes
2answers
57 views
Handling MODIS NoData cells with gdalwarp
I'm using the gdalwarp tool to convert MODIS .hdf into GeoTiff files. I want to set the value of the nodata cells so that when I import the .tif image into Grass there is no black edge. I'm using the ...
0
votes
0answers
24 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 ...
1
vote
1answer
51 views
Python GDAL: Write new raster using projection from old
If I read in a raster image as an array, then make some changes to the values in the array, how do I then save the array as a raster with the same projection information as the original array?
In ...
1
vote
2answers
152 views
Merging many rasters using Python
I have a list of many many rasters. I want to have a simple and easy to understand script that takes this and merges it into one big mosaic. I found a similar question but the accepted answer adivises ...
0
votes
1answer
50 views
gdaladdo positive and negative aspects?
I read and I read opinions and topics regarding this tool but I am still unclear if I should us this or not.
In my project I have thousands off tiff files which need to be put on a map. The problem ...
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
1answer
78 views
How to clip raster by multiple polygons in multi rasters?
Using QGIS, I want to clip a raster by multiple polygons contained in a single shapefile. I read that gdalwarp can clip my raster by multiple polygons BUT the output is a single merged clipped raster. ...
3
votes
1answer
49 views
Differences in raster extents in gdalinfo, SAGA & Quantum after resampling
I recently resampled a raster file using SAGA's Resampling module. The aim was to widen the extent of the new raster to two decimal places, where the original raster has three decimal places. The ...
0
votes
1answer
75 views
QGIS can't find osgeo after GDAL upgrade
Mac OS 10.6.8: I installed QGIS 1.8.0 with GDAL 1.8; then another app requires GDAL 1.9 and installed it; now QGIS can't find osgeo [python-gdal]. (I can't find any trace of GDAL 1.8 left in my ...
0
votes
0answers
32 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 ...
1
vote
0answers
37 views
Normalize with gdal_translate
I do not understand the command line when I try to work with gdal_translate in QGIS. I found this at the forum: Normalize raster values to 0-255
And tried this:
*"If not, from within QGIS choose ...
2
votes
0answers
49 views
How to create raster attribute table to a raster data using gdal python?
I classified a remote sensing data and saved it as a raster using Gdal python. I want to create a raster attribute table for this classified result.. my classified raster has five classes with ...
8
votes
2answers
164 views
How can I get a shapefile from a postgis query?
My data is in a PostGIS database. I would like to generate a shapefile from a query. How can I do that?
0
votes
3answers
204 views
How can I get the proj4 string or EPSG code from a shapefile .prj file?
I have to work with a shapefile defined in an unusual projection, which my GIS software does not know about. How can I get the proj4 definition or the EPSG code for the projection?
1
vote
1answer
47 views
GeoDjango - Use GDAL python binding in the shell
I would like to use the GDAL python binding in my GeoDjango site. The aim of this is to use ogr2ogr capabilities in a script. I am on windows 7 so I have installed GDAL-1.9.2.win32-py2.7 downloaded ...
1
vote
1answer
147 views
How to install GDAL 1.10 with OGR SQLite driver support on Ubuntu?
How can I install GDAL 1.10 with OGR SQLite driver support, and JPEG and PNG drivers per http://www.gdal.org/frmt_mbtiles.html
2
votes
1answer
147 views
GDAL_translate: converting ESRI GRID to Geotiff in batch
The Challenge:
To batch convert 1000 rasters in ESRI Grid binary to Geotiff using either using a batch file or Python 2.7 without ArcGIS/Arcpy module.
The Tools:
Win7Pro, GDAL 1.9.2 (via OSGeo4W), ...
1
vote
0answers
37 views
How can I fix badly specified geographic coordinate system with units in arc-seconds?
Check out this depth-to-rock soil data. It is linked from here. The spatial reference system is a latlon, but the units are arcseconds. I could not reason out how to override the SRS even after ...
3
votes
1answer
69 views
Grid registration issue converting from GeoTIFF to ARC ASCII Grid
I've got a 3 arc second digital terrain model represented as a 32-bit GeoTIFF that looks like this:
$ gdal_info gom03_v1_0.tif
Driver: GTiff/GeoTIFF
Files: gom03_v1_0.tif
Size is 10200, 7800
...