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
14 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
20 views

GDAL Python and postgis raster?

I'd like to create a postgis raster using GDAL and python. I can get the driver easily: drv = gdal.GetDriverByName("PostGISRaster") But how can I create a new raster table? I can't find any ...
0
votes
0answers
29 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
32 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
21 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
29 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
31 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 ...
0
votes
0answers
8 views

Missing importfromURN method in gdal java wrapper

The java wrapper of gdal doesn't have the method importFromURN, and I want to use the projection system which is specified in the URN string format. Is there a way in which I can do that? Maybe I can ...
0
votes
0answers
7 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
0answers
13 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
29 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.
0
votes
0answers
27 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
23 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
18 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
17 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 ...
0
votes
0answers
50 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 ...
0
votes
0answers
33 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
0answers
30 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
13 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
37 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
27 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 ...
0
votes
0answers
11 views

Relating to GeoLocation tool of Geospatial PDF Document

I created a PDF file with OGC_BP as GEO_ENCODING option like shown in the below command. The below tif file’s Datum and Projection details are WGS84 /Geographic (lat/lon). ./gdal_translate.exe -of ...
0
votes
0answers
20 views

How to use cx_Oracle db connection with OGR API

I am creating ogr datasource for oracle spatial using OCI connection in pyton code successfully. I can also get the layer from the datasource and I can add new features. But I am also using ...
0
votes
0answers
26 views

GDAL conversion to Terragen outputs file full of zeros?

I recently learned some gdal command line syntax in my attempt to convert some geotiff files to the Terragen format. During my first attempt I noticed a message about nodata values: gdalwarp -of ...
0
votes
0answers
35 views

Optimizing shapefile lookup time?

So, I have a ~1GB shapefile which is running circles around a ~5MB shapefile when it comes to feature look-up time (using python, with GDAL): def check(name, lat, lon, attributeFilter:'SQL ...
0
votes
0answers
96 views

Interpolation using GDAL

I am looking for some hints here. There is a shape file with point data of rainfall sampled at a regular grid, and there is a shape file with point data of soil attributes sampled at a regular grip ...
0
votes
0answers
36 views

How to add new SRS/Projection/WKT to the GDAL database

I'm using GeoServer, OpenLayers(3.0) and the GDAL utilities. GeoServer has one (or more) SRS/Projections that is/are NOT present in the GDAL database of SRS/Projections. I can get the well-known ...
0
votes
0answers
37 views

GDAL, Georeferencing

I have been trying to use GDAL library to add geoinformation to an image. From the documentation from GDAL web page I could find that I could use GDAlSetGeotransform(), for that I need a six ...
0
votes
0answers
53 views

Reprojecting from Lambert Conformal Conic into EPSG:3857?

I'm trying to reproject a plain png image file into EPSG:3857 for use in an OpenLayers application. I'm pulling the image from the NWS site at: ...
0
votes
0answers
38 views

Gdal2tiles issue when using -z for specifying zoom lvls in raster profile

Everything works fine when not using -z. But using -z and only wanting 0-1, i run into an issue that is best illustrated as below. C:\python\WinPython-64bit-2.7.6.4-gdal\python-2.7.6.amd64>python ...
0
votes
0answers
72 views

How to import ERDAS ECW in QGIS 2.6 using GDAL 1.11?

I am using Lubuntu 14.10, QGIS 2.6, and Ubuntu GIS(unstable). QGIS was used to use GDAL 1.10, and can import ERDAS ecw format. But after GDAL upgraded to 1.11, QGIS couldn't import ecw images. How to ...
0
votes
0answers
25 views

Subtract parts of polygon that overlap with ocean

I have some seismic data in format of shapefiles/geojson. The data has no relevance in the oceans so I am looking to strip away those parts of the polygon. What I am currently doing is using the ...
0
votes
0answers
52 views

apply gdal to calculate raster that is already in qgis raster calculator

I am using the following code in qgis to calculate some raster.It is not giving the correct result as it is in arcpy.I want to apply same in gdal.Can anyone help me how to use the gdal api.Please give ...
0
votes
0answers
26 views

Using GDAL with a line layer and points layer, find next point along line layer

With the points layer and line layer, I'm trying to create a graph for path finding. I've got a line layer that I've dissolved, thinking that might make this easier. The points in the points layer lie ...
0
votes
0answers
68 views

How to read Sentinel-1 tiff images from ESA scihub with Python (and GDAL)?

I can read georeferenced tif images of Sentinel-1 downloaded from PolarView with Python / GDAL but I cannot read the SAFE format from ESA. I need it because PolarView (very nice web interface) keeps ...
0
votes
0answers
30 views

ERROR 6: The PNG driver does not support update access to existing datasets

I was trying to overlay a shapefile to some raster images from a directory using gdal_rasterize. But then encountered this error ERROR 6: The PNG driver does not support update access to existing ...
0
votes
0answers
39 views

writeOGR alters MultiPolygon holes

I'having trouble using writeOGR to write GeoJSON files, when there are MultiPolygon objects. Here is an example: I'm creating a SpatialPolygonsDataFrame object from GeoJSON, with a single feature made ...
0
votes
0answers
52 views

Create tiles for on Google Maps from PNG images

I have some PNG images in 2048, 4096, 8192 and 16384 pixel size to generate tiles for zoom level 3,4,5 and 6. My data are plotted in Mercator projection and centered over a particular area of clat ...
0
votes
0answers
74 views

gdal ReadAsArray returning NoneType

I'm trying to read in several rasters as array using gdal in a python script, but I keep getting NoneType returned and can't figure out why. The process is this: 1. Use gdalbuildvrt ...
0
votes
0answers
42 views

java gdal.jar version 1.10.1 and osmconf.ini question

Does anyone have any info on how to configure this osmconf.ini text file? I use the gdal.jar (version 1.10.1) to open an .osm (xml) (ex. ogr.Open(filename, false)). I could get the 5 Layer objects ...
0
votes
0answers
19 views

Can I export overview with gdal?

How can I export overview for example 1/4 from the orginal raster map to a geotiff file using gdal?
0
votes
0answers
22 views

Downsample raster average map with control on the average algorithm

I need to downsample raster average map with control on the average algorithm to 1/4 from original size
0
votes
0answers
59 views

ogr2ogr in java gdal

I would like to code ogr2ogr -f "GeoJSON" destination.geojson source.geojson -s_srs EPSG:3068 -t_srs EPSG:4326 in java-gdal. I tried to understand how it should work by looking at this example but ...
0
votes
0answers
49 views

OSGEO/GDAL and Rotated Pole Grids

I have a netCDF containing a raster in a rotated pole grid. I have a script for converting the desired information to GeoTiff, however it requires projection information in the form of WKT string. ...
0
votes
0answers
602 views

SSL certificate problem: unable to get local issuer certificate with gdal and curl

* Connected to ascendxyzdatastagingweu.blob.core.windows.net (168.61.57.78) port 443 (#0) * libcurl is now using a weak random seed! * SSL certificate problem: unable to get local issuer certificate * ...
0
votes
0answers
315 views

help with TMS (gdal2tiles) Openlayers 3 and custom projection

I work with a local italian projection (EPSG:3003 Monte Mario Italy zone 1) and I had loaded this projection in my project for evitate to reproject all of my data. I had created the tile pyramid with ...
0
votes
0answers
112 views

How to Read GDB from c#

I am trying to read .gdb file using osgeo api i go for following code but cant read. suggest me. string File= @"D:\GDB File\Demo.gdb"; public IConnection OpenFDOSourceConnection(string File) ...
0
votes
0answers
32 views

GOES 13 EAST How to Georeferencing

I have a many image for Georeferencing, Goes 13 EAST this is metadata: GOES 13 Imager frame 78 at UTC 14:45:22.485 day 009 of 2015 Vis pixels : 4009, 24840 lines : 2621, 13440 Vis Lon : ...
0
votes
0answers
55 views

Mosaic several geotiff files

how to mosaic several geotiff file to submap that does not contain ALL the source maps I need GDAL C++ API?