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
2answers
47 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
22 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
62 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
68 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
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
2
votes
2answers
73 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
54 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
48 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
46 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
61 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
538 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
32 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
86 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", ...
1
vote
1answer
83 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
36 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
178 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
115 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
29 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
58 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
81 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
48 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 ...
1
vote
1answer
96 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
84 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
54 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
49 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
45 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
0answers
291 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
216 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
57 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
104 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) ...
1
vote
1answer
131 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
114 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
18 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 ...
1
vote
0answers
49 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
107 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
110 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
94 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
47 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
27 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
20 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
74 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
817 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
30 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
245 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 ...
3
votes
2answers
255 views

Downloading raster data into python from postgis using psycopg2

I have raster data in a postgres table that I want to get into python as a numpy array. I am using psycopg2 to connect to the db. I am able to download the data but it comes back as a string (probably ...
1
vote
0answers
21 views

GDAL Warp cuttline not working

Has anyone ever got the cutline to work in C++? I have it working off the command line no problem, but it doesn't seem to do anything when I populate that argument in C++ as below: *//Create a ...
3
votes
1answer
90 views

How do I get GDAL_translate to output better resolution

I have a set of GeoPDFs that I converted to GeoTiffs. However, the end results are horrible. They are very pixelated. The command I passed was gdal_translate -of GTiff inFile outFile -co ...
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?
0
votes
1answer
31 views

Code of _gdal.pyd

I want a deeper understanding of how gdal_polygonize.py works. It uses gdal.Polygonize and gdal.Polygonize refers to _gdal.pyd. Where can I see the actual algorithm where the actual polygonization ...
4
votes
2answers
868 views

Obtain coordinates and corresponding pixel values from GeoTiff using python gdal and save them as numpy array

How to obtain projected coordinates as well as the actual pixel values at those coordinates from GeoTiff file and then save them into a numpy array? I have arsenci020l.tif file, and its coordinates ...