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
0answers
643 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 ...
1
vote
0answers
205 views

gdallocationinfo from C++?

I need a C++ API to convert x,y Image Coordinates in their native projection to output image pixel,line coordnates. I see the gdallocationinfo documentation, but no API for it. Where in online GDAL ...
1
vote
0answers
148 views

Is Django's LayerMapping capable of putting a static value into all features?

I'm using GeoDjango's LayerMapping utility to try and import a set of features. The catch is that aside from the attributes in the source layer, I want all the destination features to have the same ...
1
vote
0answers
364 views

ValueError when reading a raster band as a numpy array

Here's the problem shown in Python shell: In [32]: from osgeo import gdal In [33]: geotiff = '/Users/calvin/work/luc/proj_public/media/GLO ...
1
vote
0answers
152 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, ...
0
votes
0answers
15 views

find pairs of near features with geopandas, fiona, gdal etc

I have a feature class of points, a few thousands I have now, but I expect to deal with hundreds of thousands of points. I would like find pair of points that is within a specific distance. The ...
0
votes
0answers
30 views

GeoPandas save to shapefile issue: Unable to open EPSG support file

When I try to use to_file() to write a GeoPandas GeoDataFrame to a shapefile I get the following error. df3.to_file('~/Desktop/testout.shp', driver = 'ESRI Shapefile'); ERROR:Fiona:OGR Error 4: ...
0
votes
0answers
16 views

GDAL data - change top left coordinate

I have GDAL raster dataset. I want to extract raw values from it. All is working correctly, but problem is with top left coorinates. If I extract data from GDALRasterBand, point[0,0] is at topLeft. ...
0
votes
0answers
43 views

gdal2tiles: how to make filenames of tiles to represent xyz coordinates?

I'm converting ECW file to tiles using gdal2tiles. Right now the tiles and folders generated by gdal2tiles are named as numbers starting from 0 successively. The folder structure looks like: How to ...
0
votes
0answers
28 views

How to transform ENVI Hdr to PNG using GDAL?

I am trying to transform a ENVI Hdr image into a PNG (or other RGB image format) in order to visualize this image. I am selecting the three default bands (55, 41, and 12). I am using GDAL by using ...
0
votes
0answers
26 views

Aggregate/merge data upon insert into PostGIS (via gdal)

I am working on a project where I take a large raster file (1.5GB+), put it through a number of image-processing operations, and finally convert it to vector data. Being that the raster is large, I am ...
0
votes
0answers
24 views

Python crashes when I try to import GDAL after re-installing it

A while back I went through the installation process for GDAL by installing the core components and then the Python/GDAL bindings. Everything was fine when I would type in from osgeo import gdal. ...
0
votes
0answers
28 views

WCS elevation with Cesium + Geoserver

I'm trying to develop an offline demonstrator showing hi-resolution bathymetry data using Cesium 1.11 and Geoserver. I've merged a number of 1/3 arc second areas around Puerto-Rico from NOAA ...
0
votes
0answers
27 views

What are the units in GMTED2010 elevation data?

I have downloaded the GMTED2010 elevation data from http://topotools.cr.usgs.gov/gmted_viewer/viewer.htm I am merging all the files/tiles (to create a global dataset) with: gdal_merge.py There is ...
0
votes
0answers
28 views

Install GDAL 2.0 on a MacOSX

Anbody knows what's the easiest way to install GDAL 2.0 on a MacOSX? The usual suspects kingchaos binary distribution and homebrew seem to be stuck on GDAL 1.11 I need support for TopoJSON feature ...
0
votes
0answers
27 views

Creating Composite Raster from multiple GDAL sub datasets where CADRG is the source

I'm using GDAL on a project to view RPF (A.TOC) format of CADRG based imagery. I see how opening the "A.TOC" results in a dataset with many sub datasets. What I want to do is programmatically (on ...
0
votes
0answers
34 views

Cannot find information about my.table table in raster_columns

I am running PostgreSQL 9.4 and PostGIS 2.1 and have loaded a small piece USGS SRTM data for North America successfully into my database. I am attempting to export a small piece of of the rasters I ...
0
votes
0answers
16 views

OGRFeature set Multiple fields

Hi all to start off with: Using Gdal compiled with Xerces Coding in C++ with the QT Creator version 5.4.1 So my problem is im trying to use Gdal to create my own Esri shapefile, I get a strange ...
0
votes
0answers
24 views

Add hillshade to naip imagery

I've been searching for quite a while now. Is there a way to merge a hillshade image with an aerial image with gdal? I'm just trying to create a hillshaded aerial image.
0
votes
0answers
44 views

Speeding up a GDAL SQL query with indexes or different file formats

I have a query that I'm performing with python and OGR2OGR similar to this: /opt/gdal-custom/bin/ogr2ogr -f CSV /vsistdout/ foo.shp -dialect sqlite -sql "SELECT A, ...
0
votes
0answers
25 views

Modify NAIP Images for seamless mosaic with gdal

I'm processing lots of USGS NAIP imagery which overlaps. if I load multiple files into a QGIS project I can clearly see the edges of each tile being that some tiles have a darker or lighter contrast ...
0
votes
0answers
39 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
40 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 ...
0
votes
0answers
15 views

Generating Scale Bar for Raster Image Data

My goal is to create a scale bar for a printed map at 1:1,000,000 scale. The input dataset is a Mercator projected geotiff. Using GDAL it is possible to get the spatial reference information and ...
0
votes
0answers
38 views

Gdal Polygonize Java

I tried to use the gdalPolygonize function within in java. What I did Installed gdal-111-1800-x64-core from the following link ...
0
votes
0answers
21 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): ...
0
votes
0answers
45 views

Is there an open source solution to access raster layers in an ESRI File-GeoDatabase?

I'm looking for a way to access raster layers in an Esri File-GeoDatabase without using ArcObjects or ArcPy, specifically I would like to access the raster layers with GDAL. I understand that the GDAL ...
0
votes
0answers
37 views

gdal tool for extracting data

Is there any gdal tool available for obtaining data from number of files. actually i need atmospheric parameters which are downloaded from modis website. some datasets are not having data i.e ...
0
votes
0answers
35 views

GDAL Create Layer WFS

So I'm trying to write a program that has the ability to read and write data from a WFS (Web Feature Service) I've managed to pull all the data I want from the WFS. Now I'm trying to write to it and ...
0
votes
0answers
30 views

How to overlay dem (100m) over MODIS (500m) in square grid?

I have SRTM Dem data and the resolution 90m approx at the equator however the resolution varies as we move from equator to poles. For my case the study area is Himalayas. My plan is to get the square ...
0
votes
0answers
34 views

Proper projection name for NAD83 2011 revision

I have two PRJ files, one from ESRI and another from some custom GDAL/OGR code I wrote (pasted below). I was trying to have both work in NAD83 UTM10N with the 2011 revision. The ESRI file has 2011 in ...
0
votes
0answers
61 views

Create GeoTIFF from JPG and JFW files with gdal

I have a JPG image and the corresponding geospatial information on a JFW wolrd file in a ETRS89 geodesical system and UTM coordinates (EPSG:25830) 5.0000000000 0.0000000000 0.0000000000 -5.0000000000 ...
0
votes
0answers
65 views

ogr2ogr failing to open/convert GML

I'm trying to convert a GML file into GeoJSON using ogr2ogr, I've compiled GDAL, Expat and Xerces from source, but when I run my command I get an error. My convert command ./ogr2ogr -f "GeoJSON" ...
0
votes
0answers
29 views

Escaping the MODIS Swath Projection with GDAL: MOD06_L2: MRT Swath Tool not working

Stackexchange, I am looking at ftp://ladsftp.nascom.nasa.gov/allData/6/MOD06_L2/2012/222/MOD06_L2.A2012222.0800.006.2015062054108.hdf Trying to get the SDS (in WGS84 Projection and as GeoTiff): ...
0
votes
0answers
15 views

Rasterizing a SSURGO shape file with GDAL — Choosing right number of Pixels

I am trying to rasterize a SSURGO shape file into UTM coordinates with 5m resolution. My first step gives me a GeoTiff with 3000x3000 pixels in lat/lon. gdal_rasterize -a MUKEY -ts 3000 3000 -l ...
0
votes
0answers
35 views

Calclulate the shade from a DSM and from sun elevation and azimuth angle

I have a mosaic of about 5000 tiles of aerial orthophotgraphy taken at different dates and thus with different sun angles. Furthermore, I have a Digital Surface Model (1 m resolution). My goal is to ...
0
votes
0answers
73 views

GDAL: defining nodata value for gdal_calc.py

This old post exactly describes my question: http://lists.osgeo.org/pipermail/gdal-dev/2011-September/030281.html I want to copy the numpy ma.masked_outside functionality to mask values in my ...
0
votes
0answers
34 views

RuntimeError opening rasterio array in GDAL

I've opened a GeoTiff with rasterio: import rasterio with rasterio.open('Africa.tif') as src: transform = src.meta['transform'] array = src.read(1) array([[203, 203, 203, ..., 0, 0, ...
0
votes
0answers
22 views

Which command is used to check the coordinates and resolution of each pixel for raster binary data(.dat) format?

I downloaded the modis composite data(8day) of MOD09A1 product mainly band 4 and 6 in HDF-EOS format, did the conversion from HDF-EOS to header format(hdf) and then merged all the hdf into one single ...
0
votes
0answers
25 views

Create a list of affected tiles from polygon / Gridding a polygon

Given a projection, a zoom level, a grid definition and a coverage polygon - what is the easiest/fastest way to obtain a list of map tile indexes touched by the polygon? Are there any existing tools, ...
0
votes
0answers
62 views

Qgis 2.8, gdal python scripts gives error at end of process

I am using Qgis 2.8.1 64-bit (Standalone installer) which also packages a number or other applications, like OSGeo4W Shell, Saga GIS et.c. In the OSGeo4W Shell I am encountering a problem with some ...
0
votes
0answers
120 views

How to write features in file geodatabases (FileGDB) with GDAL and Python?

I am trying to copy features from a spatiallite database to a filegeodatabase. The target FileGDB already exists with the required feature classes. I am using the FileGDB-API 1.4 on Ubuntu and Python ...
0
votes
0answers
37 views

How can I merge multiple grib2 files into a single file with a time dimension that I can upload to Geoserver?

I have a large number of grib2 files representing the same grid for different times. I want to be able to select an arbitrary amount of them and merge them into a single grid with time dimension. That ...
0
votes
0answers
41 views

Problem Installing GDAL extension for Geoserver - java.lang.UnsatisfiedLinkError

As the title states im getting an error trying to install the GDAL extension for Geoserver 2.7 (My goal here is to enable MrSID support). The complete error message is: ...
0
votes
0answers
49 views

No longer can write paletted GeoTIFF in R using rgdal::writeGDAL

The following code used to return a paletted GeoTIFF, but no longer seems to work in my current environment (I did upgrade R from 3.1.0 to 3.2.0). # Download some point data ...
0
votes
0answers
68 views

GDAL/OGR - Ogr_wrap.dll entry point not found

I am using the latest stable compiled binaries of GDAL 1.11 from gisinternals.com with a C# project in Visual Studio 2013 and im having some problems with the ...
0
votes
0answers
27 views

gdal2tiles only rendering half of tif

I am using gdal2tiles.py to render map tiles of some data. The file I use is generated by combining a .tif and .tfw using gdal_translate XX.tif XXn.tif Whenever I open up the file in QGIS, I see ...
0
votes
0answers
62 views

gdal_merge.py import gdal error

normal Gdal utilities work. gdal utilities with .py extension do not. they had worked very recently, within the last two months. checked the path variable and python version called from the command ...
0
votes
0answers
102 views

Creating geoTiff from MBTiles

I have mbtiles file with various zoom levels (8-14) and I want to create geotiff file from it. I think that this could be acomplished with gdal but I dont know how. Any suggestions on how to complete ...