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

Python GDAL: Rasterising point data, raster and points are not geolocated

I am trying to rasterise some point data using Python GDAL module. But when I plot the data there is an offset between the two (original points and raster). I am sure it has to do with the ...
1
vote
3answers
266 views

GDAL: How to replace NaN pixel values in GeoTIFF

I was wondering if there is a easy way (GDAL) to replace GeoTIFF pixels that are -nan with a different value (e.g. 100)? I tried gdal_calc.py -A my.tif --outfile=result.tif ...
1
vote
2answers
135 views

[GDAL API]: can't save image in some formats

edited "32-bit buffer" below means that it contains 32-bit rgba pixels. I need to save image to file from 32-bit memory buffer. Code below works well for that when I use TIFF format. In this case ...
0
votes
0answers
51 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
21 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?
1
vote
1answer
219 views

How to Read&Write .tiff images in java using GDAL library

I searched many sites to learn about this but I didn't find anything. I need step by step process for reading .tiff monochromatic image in java using Gdal library.
1
vote
2answers
70 views

Convert Natural Earth shape to GeoJSON - (Multi)LineString instead of (Multi)Polygon?

I need shapes of admin regions as GeoJSON (Multi)Polygons. After looking for an appropriate source for way too long, I found this NE Admin 1 dataset. Using ogr2ogr to convert the data to GeoJSON, I ...
1
vote
1answer
26 views

Processing feature string fields to raster

I am using the GDAL python bindings. I am trying to rasterize a layer from an arcinfo coverage file, but the values I need to rasterize I have to calculate from string fields. OGR can not write to ...
1
vote
1answer
90 views

convert GTiff to AAIGrid results in cell size switch

I don't have a clue why the conversion of a tif to an asc has that kind of behavior: original tif metadata Size is 466, 427 Coordinate System is: PROJCS["ETRS89_UTM_zone_32N", ... Origin = ...
2
votes
1answer
113 views

Install gdal executables

Trying to search for gdal executable versions anywhere like the version from Unofficial Windows Binaries for Python Extension Packages before it was change to wheel but no luck(e.g. ...
0
votes
0answers
26 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
2
votes
2answers
114 views

gdal_translate creates images that are mirrored

I'm having a problem with gdal_translate - when translating from an XYZ file to AAIGrid or geotiff the raster is mirrored and "moved" south on one axis. The top part of the attached image is the ...
0
votes
0answers
94 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
1answer
99 views

Usage of gdal.Polygonize(,,,)

I am trying to code gdal_polygonize source.png -f "GeoJSON" destination.geojson with the java-bindings of gdal. I don't know how to make gdal.Polygonize(...) create the "DN"-Fields one obtains when ...
0
votes
0answers
55 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. ...
3
votes
1answer
99 views

gdal_grid - fails to find layer and field

I'm using gdal_grid for the first time and get this issue: gdal_grid -zfield field_3 -l layer0 OLEX-LAT-190952014.vrt OLEX-LAT-190952014.tiff ERROR 1: Failed to find layer 'layer0' on datasource ...
0
votes
0answers
826 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 * ...
2
votes
1answer
36 views

Can JPEGs have overviews?

I was a little surprised to see the output of a .jpg file when gdalinfo said it had overviews. Can jpegs really have overviews or what does this mean? Can they be removed to reduce file size? Image ...
2
votes
1answer
102 views

Reprojection error

I have a lidar file (file.las) with the following spatial reference: Spatial Reference: PROJCS["NAD83 / UTM zone 11N", GEOGCS["NAD83", DATUM["North_American_Datum_1983", ...
2
votes
1answer
126 views

smallest, lossless, GDAL ready image format

I would like to know what the smallest file format is I can use with GDAL that fulfills the following criteria: lossless compression (relatively) easy to read/write with GDAL Python bindings least ...
1
vote
0answers
70 views

Issues installing GDAL with PostgreSQL

I'm trying to install gdal-1.11.0 on CentOS 6 machine. Following the instructions, this is my config ./configure --prefix /usr/local --with-fgdb=/usr/local/FileGDB_API ...
1
vote
2answers
341 views

GDAL C++ API: How to create PNG or JPEG from scratch

I'm new to GIS and GDAL. My question probably is very basic, but I couldn't find answer. May be I don't understand GDAL ideology. I need to create raster images from scratch, for example, JPEG or ...
0
votes
1answer
193 views

Using gdal-java of OSGeo4W

I would like to use gdal_polygonize and gdalinfo in java. This site says: "Note that OSGeo4W includes a gdal-java package and a Java runtime making it fairly easily to build local Java applications ...
0
votes
1answer
36 views

Georeferencing using Liblas error

I am trying to write georeferencing information to a '.las' file using liblas and c++. Here is my code: ofstream ofs; ofs.open("test.las", ios::out | ios::binary); liblas::Header header; ...
0
votes
1answer
100 views

downsample raster map with average algorithm

I need to downsample map to new map with less resolution NOT for overview BUT to new map file with smaller size I need to do that with gdal Utils thanks!
1
vote
1answer
111 views

GeoserverTerrainProvider plugin displays faults in elevation tiles

I try to display elevation data using the triple Geoserver/Openlayer3/Cesium. It seems I have the same problem than http://stackoverflow.com/questions/25936968 and for now, I can not get a working ...
1
vote
1answer
63 views

Adding Origin to Geotiff using Python GDAL?

Alright, so I'm getting closer to figuring this out but I'm stuck at one (that I know of) thing... how do I use GDAL to apply a known origin of a GeoTiff to another that has been processed in ...
2
votes
1answer
140 views

changing negative pixel spacing to positive

I have a bug with one application that does not handle negative pixel spacing values. Therefore I would like to change the negative pixel values of my images (geotif) into positive values (while ...
1
vote
0answers
114 views

Gdal in ipython

i am trying to run GDAL in Ipython Notebook but i don't get it. I did conda install GDAL and it was aparently ok, but when i try to do the import i get this: ImportError ...
0
votes
1answer
73 views

unresolved external symbol in MSVC 2010

When I try to build a project with GDAL, I cannot get rid of the below errors. *Error 1 error LNK2019: unresolved external symbol _VSIFree referenced in function "public: void __thiscall ...
0
votes
2answers
97 views

How to read DGN using GDAL in VB.Net?

Reading a DGN file is a big problem for me. I tried more and more but can't find a way to read a dgn(v8) file by VB.Net. After many search, i found out that GDAL can read and write dgn file, but i 'm ...
1
vote
1answer
81 views

Open and split a 4 channel RGB picture

How can I split an 4 channel rgb pic in qgis? With the value tool I can see 4 channel. I tried to use the RGB to PCT tool but I always get an error (File "C:\PROGRA~1\QGISBR~1\bin\pct2rgb.py", line ...
0
votes
1answer
432 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 ...
3
votes
2answers
321 views

GDAL rotate DEM

Is it possible using any of the command line GDL tools such as gdalwarp, etc to perform a rotation of DEM data - a GeoTiff for example? Anyone know how to do this? UPDATE1 After clearing out ...
3
votes
1answer
79 views

specifying extent in GDAL's WriteArray

Is it possible to specify the extent when creating an empty raster in GDAL? I looked everywhere, but can't seem to find anything. The portion of my script where I write the raster would look something ...
1
vote
1answer
124 views

Different origin between GDAL/Python and ArcMap of a Modis image

I have a Modis image and i load this image in Python using gdal library from osgeo import gdal, ogr INPUT_raster_1 = "C:\\myimage_1km.tif" ds_1 = gdal.Open(INPUT_raster_1, gdal.GA_ReadOnly) ...
2
votes
1answer
189 views

Load the raster image which is in TIF format using QGIS API

I am quite new inthe field of GIS. I am interested in is to load the raster image which is in TIF format using QGIS API I have followed the steps given the in the follwing link to load shape file ...
1
vote
2answers
139 views

How do I convert a GeoTiff's neatline metadata from vector format to pixels using GDAL?

I have a GeoTIFF that produces the following when run through gdalinfo: Driver: GTiff/GeoTIFF Files: PAA_1.tif Size is 14400, 6600 Coordinate System is: ...
1
vote
0answers
21 views

gdal_polygonize floating values [duplicate]

gdal_polygonize converts whatever rasters values into vector integers as it is based on the GDALPolygonize() function (http://gdal.org/gdal__alg_8h.html#a3f522a9035d3512b5d414fb4752671b1). It is ...
2
votes
0answers
69 views

Using OGR2OGR with LIBKML (Examples please)

I am trying to figure out how to use GDAL (ogr2ogr) to export spatial data from SQLServer to KML. The standard KML driver works, but it is not very robust. LIBKML has so much promise (layers, styling, ...
0
votes
0answers
134 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
2answers
162 views

System call gdal function in R on Mac

Hopefully someone can help me figure this issue out. I am trying to system call gdal functions inside of R using the system / system2 functions. Here is an example of the code: > system("gdalinfo ...
2
votes
2answers
122 views

GDAL reads NEX Climate projection datasets as netCDF on Mac, HDF5 on Ubuntu

I'm trying to work with the climate projection data that NASA released, and is hosted publicly on S3: http://aws.amazon.com/nasa/nex/. The data is available at s3://nasanex/NEX-DCP30. The code I'm ...
2
votes
1answer
77 views

Why does GDAL Polygonize flip features vertically?

I am trying to convert a 1 band jpg raster into polygons. It is converting the data and I get a polygon shape file. However, the output data is vertically flipped. Input data have no reference ...
1
vote
0answers
37 views

How to set -srcwin with python gdalbinding and driver.createcopy

I am using gdal_translate currently to cut a 60000x60000 geotiff into smaller 1000x1000 geotiff files. This works but it takes about 24 hours(and I have 44 of those big images to compute). Im not ...
0
votes
1answer
23 views

gdaladdo adding stripes to data

I created some image overviews for a large (1.2 Gb) topo relief image. gdaladdo -r cubic -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR --config BIGTIFF_OVERVIEW YES ...
0
votes
1answer
102 views

Help interpret GeoTif pixel value python gdal: connection between pixel value, RGB values and physical concentration?

I was running python script that queries a GeoTiff file at the coordinates of a centroid of blocks and as a result I got a list of pixel values, which I have trouble interpreting. When I run gdalinfo ...
2
votes
1answer
1k views

Install GDAL on CentOS 7

I'm having issues with installing GDAL on a fresh install of Centos7 using the ELGIS repo. Here's my commands and output: sudo rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm ...
0
votes
0answers
37 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 : ...
1
vote
1answer
353 views

Changing color of raster images based on their data values - gdal

Let's say I have 1 band raster images with Gray Color Interpretation and I want to change their color based on their data values. Data values -1, will be Blue, -0.5 will be Light Blue, 0 will be ...