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
0answers
5 views

Error in using gdal java binding

I am using the java binding of gdal to project a set of coordinate points from UTM to lat/log using the CoordinateTransformation Class of gdal. I have written the code as follows: ...
0
votes
2answers
9 views

gdalwarp changing value in nodata pixels

I'm using gdalwarp to convert MODIS NDVI mosaics from Sinusoidal to epsg:4326. To save space I'm using VRT files until I reach the final product. Here is my workflow. Mosaic NDVI Modis tiles using ...
0
votes
0answers
9 views

Different KML size from ArcGIS and Ogr2Ogr

I have been converting shapefiles to KML. It seems that using ArcGIS to make a KML (by converting shapefile to feature layer and then using feature layer to kml tool) results in a much larger sized ...
1
vote
1answer
8 views

Most efficient way to retrieve pixel distributions inside many polygones (custom zonal stats)

I want to get the distribution of pixels from a 1 band raster that fall in each polygon of a shapefile to proceed to some statistics. I guess a zonal statistics does it in some kind of way but I need ...
2
votes
1answer
11 views

How do I call ogr2ogr from a C# application?

I have an ogr2ogr (GDAL) command that I run to export points from a database to an XML file. ogr2ogr-f GPX c:\temp\points.gpx PG:"host=localhost port=5432 dbname=SpatialPlayground schemas=public ...
0
votes
0answers
13 views

OSGeo4W and GDAL - gdal2tiles.py error

Wondering why gdal2tiles is throwing errors, I've added the gdaldata and gdalplugins environmental variables and my python is at Python27/ArcGIS10.3/, and am wondering if that is messing with the ...
0
votes
0answers
13 views

Cutting a shape from a VRT file with gdal warp

I have a couple of overlapping tif files which I want first to merge and then to clip a shape file from the result tif. The problem is that the tifs are pretty big and when the tiffs are overlapping ...
2
votes
1answer
28 views

Can't connect to foreign SQL Server table from PosgreSQL using OGR_FDW

I'm using Windows 7, with PostgreSQL 9.3.6 installed and PostGIS 2.1.5. While I wish I could get everything into PostgreSQL, I can't and need to connect to another server running SQL Server. I need to ...
0
votes
2answers
39 views

Convert a tiff Float32 image to 8bit tif (or jpeg) image using GDAL and Python

I need to convert a Float32 tiff image to 8bit format in order to display the image in a web page. In order to do that I need a jpg image but this conversion is not correctly done with GDAL because ...
1
vote
2answers
61 views

How to read ESRI File Geodatabase (FileGDB) with OGR?

I have a file ending with *.gdb. I don't know what it actually is. I also don't know what to expect inside the file. I am trying to access it with ogr. I tried with ogrinfo: ogrinfo test.gdb ERROR ...
0
votes
1answer
42 views

Facing a problem when re-projecting a file?

I am trying to re-project from Equi-rectangular (Projection=EQR) to the NASA global EASE grid (Equal Area Scalable Earth) grid 1383 586 with a ~25 km cylindrical projection (ESPG=3410). The file is ...
0
votes
0answers
8 views

converting grib to netcdf with time dimension

I'm trying to convert grib files to NetCDF. The grib files contains subdata sets which are time related. Using the netcdfAll Java library with the NetCDF-4 C library works fine. java -Xmx1g ...
1
vote
1answer
25 views

Is EPSG:3857 the correct projection for my PDF in Lambert Conformal Conic projection?

Given the following NEATLINE from the results of gdalinfo on my Geospatial PDF: NEATLINE=POLYGON ((-1340591.5297333347 -260482.28440259479,-1340591.0579001249 1878014.4171204455,3081498.0723039531 ...
1
vote
0answers
40 views

Problems coloring features of file geodatabase in QGIS

I managed to open a file geodatabase (.gdb) in QGIS. The extensions of my data are correctly shown and the attribute table shows all values correctly. However, when I double-click on the layer to ...
3
votes
1answer
34 views

Grass NVIZ has no output in QGIS 2.8.1 ubuntu 14.04

I am trying to use the Grass7 NVIZ algorithm from the QGIS 2.8.1 toolbox, on ubuntu 14.04. I have enabled Grass7 in the QGIS processing preferences. I have compiled Grass7 from source, and Grass ...
0
votes
0answers
16 views

HDF to Geotiff conversion

can anyone tell the program code or script for converting HDF files to geotiff using MRTSwath tool? I've downloaded MODIS Files for fog estimation but i couldn't find how to process them.
2
votes
0answers
34 views

Reverse parameters of a projection map

I'm user of a soaring simulator named "Condor Soaring". This simulator is at the center of a community of enthusiastic people who build sceneries (landscapes) which represents quite accurately real ...
0
votes
0answers
24 views

What driver should I use when trying to open a Geospatial PDF with OSGEO and Python?

My code is as follows: from osgeo import ogr from osgeo import gdal dso = ogr.Open('myfile.pdf') print dso dsg = gdal.Open('myfile.pdf') print dsg driverGeoPDFogr = ogr.GetDriverByName('PDF') ...
0
votes
0answers
19 views

Calculating a proper slopemap using GDAL

I have a DEM GeoTiff where I already calculated a hillshading and it looks perfect. Now I'd like to create a slopemap so that I can mark parts of a mountain that are very steep. The problem is that ...
0
votes
0answers
15 views

QGIS Import Interlis name of attributs

Why if i import Interlis 1 files to QGIS 2.8.1 / 2.6.1 there is no identification of the attributs names in each tables? The interlis model is correct (I've also tested an ITF-file with the federal ...
0
votes
0answers
15 views

QGIS Import Interlis Points problem

When i'm importing a Interlis 1 file (*.itf and *.ili) to QGIS 2.8.1 (or 2.6.1) the polygones are visualized correctly but all the tables containing POINTS (LFP1, Grenzpunkt,...) couldn't be ...
1
vote
0answers
47 views

How to avoid “Unable to compute a transformation between pixel/line”?

I am trying to re-project from Equi-rectangular to the NASA global EASE grid (Equal Area Scalable Earth) grid 1383 586 with a ~25 km cylindrical projection (ESPG=3410). The file is provided as HDF5. ...
1
vote
1answer
42 views

creating a random gdal raster with random predefined values

So far I have developed the below code but for some reason it only works for say one class of landuse instead of two. Would you please tell me where I have gone wrong? Thanks so much import os, ...
0
votes
0answers
28 views

Get min/max value of each band from landsat image?

I am trying to get min/max value of each band from Landsat image with the following code. from osgeo import gdal raster = "raster.tif" # load raster gdalData = gdal.Open(raster) # get number of ...
1
vote
1answer
8 views

Is there a URL I can post to my geoserver that confirms that I properly installed the GDAL plugin?

I'm running geoserver in Tomcat and went through the process of installing the plugin for GDAL formats. I specifically need NITF. Is there a URL I can post to my geoserver that confirms that I ...
1
vote
1answer
20 views

Set up GDAL for C++ in RHEL

I've got GDAL installed from the latest 1.11.2 source, but when I try to make by C++ executable I get undefined references to "GDALAllRegister" and basically all the GDAL functions I call. The same ...
1
vote
0answers
43 views

GeoDjango: AttributeError: function 'GDALAllRegister' not found [on hold]

Im trying to get started with GeoDjango. I am using this https://docs.djangoproject.com/en/1.8/ref/contrib/gis/tutorial/ tutorial. When I run "python manage.py migrate" This error occur: ...
2
votes
0answers
29 views

How to re-grid a raster using area-overlap weighted averaging?

I have two rasters r and r2 with different resolutions. I want to re-sample (re-grid) r2 to be the same as r using area-overlap weighted averaging:If an r grid cell is covered by more than 1 ...
1
vote
1answer
13 views

hdf-eos5 file format import in grass

I want to import AURA-OMI ozone level3 data which is available from http://giovanni.gsfc.nasa.gov/giovanni/ .The data is in hdf5 format. The extension is .he5. Do anyone know how to import in grass. ...
1
vote
1answer
35 views

Best way to copy GDAL metadata from one JP2 image to another

I have a separate question going regarding the poor performance of GDAL CreateCopy() on a large (4096x4096) jp2 file, so here's a look at a different angle: I have a C++ openCV program that takes a ...
1
vote
1answer
35 views

Python/GDAL hyperspectral Image wavelengths

I can open and read a hyperspectral image using GDAL according to the instructions brought by Max König here: So after reading the data like this : data = gdal.Open( filename ) then I can see ...
0
votes
1answer
28 views

creating a random raster image using gdal

I want to create a random image containing say three classes with predefind percentages of each of the classes using gdal in python.Any sample code would be very appreciated.
0
votes
1answer
17 views

Can GDAL with “Kml Super Overlay” output a georeferenced geoTiff from a kmz?

I've got a kmz containing an unrefrenced jpg and a boundary box in kml. ogrinfo is happy to report (filenames redacted): INFO: Open of `Sim[...].kmz' using driver `LIBKML' successful. 1: Sim[...] ...
2
votes
0answers
45 views

GDAL createCopy is really slow

I have a C++ program running some OpenCV processing on 4096x4096 JPEG2000 images that have geographical metadata. I don't want to modify the original, the results of my image manipulations are stored ...
0
votes
1answer
20 views

ogr2ogr KML to SHP generates invalid file names from layer names

I have a collection of very large KML files that I'm trying to convert to .shp. I'm iterating over 200+ KML files with an average size of around 20 MB. Each KML contains multiple layers, some of which ...
1
vote
1answer
27 views

QGIS: RGB Image display results in odd colors (MODIS)

I am trying to make a rgb map of MODIS data (Dataset09 Radiances) with QGIS. First I converted it to tif with gdal (and python). Since I did not really understand all of GDALs funcionality I used a ...
2
votes
0answers
18 views

GDAL merge; Why add 0.1?

In the implementation of gdal_merge: https://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gdal_merge.py a value of 0.1 is added to the conversion from geo-referenced coordinates to pixel ...
0
votes
0answers
24 views

Clip Image by polygon and create memory raster

I need to write a code in c++ that can clip an image (4 bands) by using individual polygons in a shape file. I need to access the values of pixels (from all 4 bands) are clipped by a polygon. I do not ...
0
votes
2answers
62 views

gdal_translate : projection error?

I am using GDAL library routines to build a tiled hierarchy of images for use with Google Earth. The images are just PNG files created using Matplotlib. To tile the images, we are using ...
1
vote
1answer
57 views

Issues with getting the height from SRTM gdalwarp WGS84(EPSG:4326) to Mercator(EPSG:3857)

I am trying to use the SRTM .hgt file to obtain the height of a location. My issue is that I wish to reproject the SRTM file from WGS84 to Mercator but the height returned is not consistent after ...
3
votes
2answers
59 views

Image processing using Python, GDAL and Scikit-Image

I'm new here and I'm sorry if I do something wrong. I am struggling with a processing and hopefully I will be able to solve here. I work with Remote Sensing applied to Forestry, especially working ...
1
vote
0answers
23 views

PostGIS is not seeing any GDAL drivers

I've tried setting POSTGIS_GDAL_ENABLED_DRIVERS=ENABLE_ALL as an environment variable. As well as running SET postgis.gdal_enabled_drivers = 'ENABLE_ALL'; from psql. (With a pg_ctl restart after each) ...
2
votes
1answer
55 views
+100

Implement r.cross / ArcGIS Combine with GDAL

I am using GDAL to process a lot of rasters. I then need to combine all the arrays to create a single output raster that represents all the unique combinations of values. I.E the same thing as ...
2
votes
1answer
57 views

Python GDAL: ogr.open or driver.open?

I’ve been using GDAL with python to manipulate shapefiles. When opening a source file I first set the driver to “ESRI Shapefile” before calling the driver’s "Open" method with the required shapefile. ...
0
votes
0answers
14 views

ogr2ogr libkml output - multiple components in OGR_STYLE

I have following command: ogr2ogr -overwrite -f libKML z.kml "MSSQL:server=dev;database=db;trusted_connection=yes;tables=tmp.libkml_test" -where "stabbr = 'CT'" My source table contains a series of ...
0
votes
0answers
9 views

Extract table-embedded attributes in KML using ogr2ogr

I'm loading a number of diverse data files into a PostGIS database, using ogr2ogr. One of these data files is a KML with useful attributes embedded as an HTML table in a description column: ...
0
votes
0answers
16 views

GDAL2Tiles crash

GDAL2Tiles seems to crash after generating tiles and no google viewers are generated, but only openlayers. This is the code I run: os.system("gdal_translate -of VRT -a_srs EPSG:4326" + ...
2
votes
3answers
94 views

Read HDF4 data using python

I am now working with VIIRS/NPP Active Fires by using python gdal. But I cannot read the data inside the files. Filename = "NPP_AVAF_L2.A2012019.0600.P1_03110.2014057125956.hdf" Here is some ...
0
votes
0answers
15 views

read tiff to bmp in c# got only white image

i want to convert a tif image to bmp i was following tutorial in https://trac.osgeo.org/gdal/wiki/GdalOgrCsharpRaster but i dont get an image i want to see the code is : // Creating a Bitmap to ...
0
votes
0answers
22 views

GDAL/OGR C++: How to connect to SQL

Using GDAL 1.11 it is possible to execute SQL commands against a OGRDataSource: But how do I connect the OGRDataSource to a SQL Database? In my case an Oracle XE 11g. I suppose the OCI drivers have to ...