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
9 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
14 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
10 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
11 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 ...
1
vote
2answers
26 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? Would I be better off converting (with gdal_translate) the ...
3
votes
1answer
36 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
63 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
44 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 ...
0
votes
0answers
26 views

gdal and python runtime error

Can't seem to figure what might be causing this error. The first file from the input path was processed while the rest of the files has an error. Any idea? @echo off setlocal enabledelayedexpansion ...
1
vote
2answers
44 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
17 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
20 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
20 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
27 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 ...
1
vote
2answers
29 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
26 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
16 views

Determine overlap of rasters in different projection systems

I'm trying to improve a python script I have for doing point-by-point comparison between datasets. It uses osgeo. My first input is a netCDF file: I extract the relevant information and store it as a ...
1
vote
0answers
9 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
9 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
22 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 ...
1
vote
1answer
48 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
31 views

Offset problem with GeoTIFF and Google Maps

I have several GeoTIFFs generated with GDAL, and just some of them present a weird offset shift of a range of ~5 km in average. The range of these problematic rasters is as much as -85/-70/-20/0. ...
0
votes
0answers
18 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
15 views

Color scaling for raster images(batch?)

Let's say I have raster images and I want to change their color based on their data value(color scaling). If the data values are from -(all negative value) - 0, I want to have that colored Blue. If ...
3
votes
2answers
65 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
13 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
28 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
22 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
26 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 ...
3
votes
2answers
92 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 ...
0
votes
1answer
71 views

How do I create a projection file using GDAL

I am trying to obtain a buffer from a polyline file using GDAL with the following function def createBuffer(inputfn, outputBufferfn, bufferDist): inputds = ogr.Open(inputfn) inputlyr = ...
1
vote
0answers
36 views

How to change values in a raster file at particular positions?

I have a collection of coordinates which comes from a QGSGeometry object. The shape is a polygon. example: qgsGeometry [[(75.2172,17.6566), (75.8499,17.9613), (75.5218,17.2113), (75.2172,17.4574), ...
1
vote
0answers
34 views

QGIS Mac OSX version cannot batch write output files after rasterization

Happy new year everyone, I have been trying to batch rasterize a series of .shp files using QGIS for Mac OS X, and keep coming up against a strange problem. I am using the QGIS 2.6.1 user interface, ...
0
votes
2answers
82 views

How to subtract rasters using the gdal_calculate command

I just want to know how to subtract two raster using gdal_calculate command? Or what is the proper way of subtracting using this? Any idea would be greatly appreciated. Note: gdal_calc is different ...
1
vote
0answers
20 views

CentOS 6.5 - After compiling gdal.so: Unable to load dynamic library

CentOS release 6.5 (Final) Linux version 2.6.18-028stab101.1 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) I'm trying to Install Cartaro CMS (http://cartaro.org/). GeoServer, ...
2
votes
0answers
50 views

Working with rasters in file geodatabase (.gdb) with GDAL

I'm working on a tool that converts raster layers to arrays for processing with NumPy, and ideally I would like to be able to work with rasters that come packaged in a .gdb without exporting them all ...
0
votes
1answer
16 views

Rastercalc.py and Rastercalcengine.py

Is there any examples on how to use the rastercalc.py or rastercalcengine.py? And what are the purpose of these python module? Are these modules the same with gdal utilities which can be run in ...
3
votes
0answers
27 views

GDALRasterizeGeometries doesn't burn correct Values

What I have is a vector shape file with a string field. What I've done is written a CSV file with the field ID, field_value and now I would like to rasterize the vector layer as a byte raster with the ...
4
votes
2answers
58 views

How to convert float raster to vector with python GDAL

I have float raster and now I want to convert it to vector. How is it possible with python gdal library? I have tried with gdal_polygonize.py of gdal utilities in command line and it worked excellent. ...
2
votes
1answer
36 views

Creating Spatialite DB from Swedish OSM

Good afternoon, I have just started to use GDAL/OGR and I am trying to create a spatialite DB from OSM data. I am using a cut of the Swedish OSM data downloaded from Geofabrik in .osm format. I have ...
0
votes
0answers
21 views

increase gdal_polygonize's capacity

I have a very big PNG (82500x40900) with more than 5000 polygons. I want to use gdal_polygonize but the geojson output shows that gdal_polygonizer stopped after 4770 polygons and the geojson isn't ...
0
votes
1answer
29 views

Georeferencing jpg via Gdal_translate output a GIS tif 15.5 times bigger [duplicate]

Given as input a light 874kb jpg, I use gdal_translate -a_ullr (source) to reinject GIS georeferencing : -a_ullr ulx uly lrx lry : Assign/override the georeferenced bounds of the output file. ...
1
vote
0answers
36 views

GDAL “Permission Denied”

I'm trying to convert a file using gdal-translate and keep getting a "Permission Denied" message. Looking online (including here) the solution is usually to make sure you have write access to the ...
0
votes
1answer
35 views

Is gdal_polygonizer creating a wrong geojson?

I have this PNG and I use gdal_polygonize 0VxOhek.png -f "geojson" 0VxOhek.geojson This is the output. There is a "features"-array which contains many objects with "type", "properties" and "geometry" ...
0
votes
1answer
31 views

eliminate small polygons of a PNG with gdal_sieve

I want to eliminate polygons wich consist of less than 3550 px in this PNG . I tried using gdal_sieve but there seems to be an error. gdal_sieve -st 3550 E8.png -of PNG E8sieve3550_4.png ERROR 6: ...
1
vote
3answers
40 views

convert csv to kml or geojson, etc using ogr2ogr (use “latitude” and “longitude” attributes for coordinates)

I've just unsuccessfully tried to use ogr2ogr to convert CSV into KML like so: ogr2ogr -f "KML" output.kml input.csv The csv has "latitude" and "longitude" columns. The attributes are all loaded ...
0
votes
0answers
84 views

How to fix “Unable to load GdalTools plugin. The required ”osgeo [python-gdal]“ module is missing.”

When I start QGIS, it display error message: Unable to load GdalTools plugin. The required "osgeo [python-gdal]" module is missing. Install it and try again. Couldn't load plugin 'processing' from ...
0
votes
0answers
29 views

Set coordinate origin to the top left corner

I have a BMP-picture and I know that it's top left corner has the EPSG:3068 coordinates 35500,24390. I would like to use gdal_polygonize and than calculate the EPSG:3068 coordinates of the produced ...
1
vote
0answers
48 views

How to create a mosaic in QGIS with cutline and feathering for Landsat-8 imagery

1 - I have two scenes Landsat-8 RGB 6/5/4 and I need to mosaic them: 2- This is my cutline in polygon format that will smooth the overlapping area: 3 - So, I need to create a mosaic with ...
2
votes
0answers
59 views

Help with Python/GDAL documentation

The instructions from the url http://gdal.org/gdal_tutorial.html give the following example: dataset = gdal.Open( filename, GA_ReadOnly) with the following description: It's interpretation is ...