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
8 views

How to use gdal_calc.py for multi-band images?

My problem is that I have multi-band images (8 bands) in GEOTIFF format and I tried to use gdal_calc.py to calculate a conditional expression between those bands. However, I could not make it because ...
2
votes
0answers
22 views

QGIS GRASS: Error when converting vector to raster

I am trying to convert a vectorial layer (a grid of regular points with values, representing probabilities, associated to each point). I tried to use QGIS, but I got this error: ERROR 1: Attempt to ...
11
votes
1answer
324 views

PyQGIS save raster as rendered image, then use GDAL tools on it

I have tried to use the code from QGis Save Raster as Rendered Image. i is a raster layer: pipelayer = i pipeextent = pipelayer.extent() pipewidth, pipeheight = (pipelayer.width(), ...
0
votes
1answer
33 views

How to load PostGIS table to Python using OGR in Ubuntu?

I want to use Python to load PostGIS table by ogr. But after I try ogr.open in python (it works if loading a shapefile), I can only get null value. Now I have tried GDAL debug, the output shows like ...
2
votes
1answer
16 views

Does the GDAL GeoJSON driver read or write multipart geometries?

In the documentation for the GDAL GeoJSON driver, I can only see mention of primitive geometries. Does the GDAL GeoJSON driver read multipart geometries like MultiLineString? If not, is there ...
1
vote
1answer
29 views

How to call gdal_translate from Python [duplicate]

I want to make a translation of a grib file to tif with gdal, I use the python script, and I have always error "the specified file not found ' import subprocess src ="donnee1.grib2" dst ="donnee2....
0
votes
1answer
620 views

Can't get gdal_merge Python script to run

I downloaded and installed GDAL. I am using Python 27. I had to use the following commands at the IDLE Python GUI: from osgeo import gdal,ogr sys.path.append('C:\Program Files\GDAL') import ...
0
votes
1answer
35 views

Where to find a version of libgeos-c1 compatible with libgeos-3.5.0?

This morning a number of Python scripts stopped functioning after a system upgrade. libgdal is no longer available, resulting in the following exception: ImportError: libgdal.so.1: cannot open shared ...
1
vote
1answer
34 views

Obtaining something like NDVI value from Sentinel-1 product

Is there a way to get the some data about biomass from sentinel-1 product? Then try to convert it to NDVI value. Maybe have some way to get RGB value?
2
votes
3answers
768 views

Extrude Shapefile to KML based on field value

I would like to extrude shapefile polygons to a KML based on a value stored in the attribute table. I am hoping to do this using open source software (QGIS, FWTools, GDAL, etc.). I looked at ogr2ogr ...
1
vote
3answers
605 views

Using very large image formats with GDAL

I would like to use gdalwarp and gdal_translate with some very large raster images (313,040 x 313,040 px) and I'm wondering what the best format or method is to do this, if it's even possible. I have ...
0
votes
1answer
18 views

Converting Tiff into geopdf using Gdal?

I tried to convert tiff image to pdf using this command in OsgeoShell gdal_translate -of PDF -a_srs EPSG:32643 bangalore.tif bangalore.pdf It gets converted into pdf but the TerraGo plugin is not ...
0
votes
0answers
26 views

How to crop orthophoto using GDAL

I have orthophoto(GeoTiff) and 4 GPS coordinates that represent rectangle. How can I crop orthophoto by using GDAL? (I need to remove areas outside of rectangle) UPDATE: I tried gdal_translate ...
0
votes
1answer
42 views

GDAL Warp giving garbage data on edges when transforming to WGS 84

I want to change one tiff file to USGS DEM file. For that I am doing following steps: Transform the tiff file to WGS84 coordiantes using Gdal Wrap utility gdalwarp -t_srs EPSG:4326 -dstnodata -...
0
votes
0answers
9 views

Raster to CSV with x y cell center coordinates, the original raster cell value, and values from another raster avoiding shapefile

I am looking for FOSS (maybe GDAL/OGR) solutions to a problem. I need to go from raster (200 million records) to CSV. It is easy enough to do via point but the point file breaks the allowable 2GB “...
0
votes
1answer
25 views

Create ShapeFile from CSV Using OGR and Python

I want to convert a CSV file of point coordinates to a ShapeFile using OGR and Python. The example.csv file looks like this: ID,X,Y 1,240007.000,647756.000 2,240008.000,647756.000 3,240009.000,647756....
2
votes
1answer
34 views

Understanding how `gdalwarp` works under the hood

I try to understand how gdalwarp works. Here is a reference to Affine GeoTransform, but I can't understand the terminology pixel/line is it x,y coordinates of image? does pixel width and height ...
5
votes
4answers
108 views
+50

How to efficiently access files with GDAL from an S3 bucket using VSIS3?

So, GDAL has recently added a new feature that allows random reading of S3 bucket files. I am looking to crop GDAL images from multiple tiles of an image without having to download the whole file. I'...
0
votes
0answers
28 views

How to use the QGIS GDAL Toolbox Offset lines?

I try to create a single sided Offset line for a line. I used the GDAL-Tool "Single sided buffer and offset lines for lines" but I fail. The error message says "wrong number of arguments to function ...
0
votes
1answer
85 views

Cannot find information about my.table table in raster_columns [on hold]

I am running PostgreSQL 9.4 and PostGIS 2.1 and have loaded a small piece USGS SRTM data for North America successfully into my database. I am attempting to export a small piece of of the rasters I ...
3
votes
1answer
25 views

It is possible to get single polygon using gdal.Polygonize()?

I have to get polygon outline for all raster in our server. I tried one example raster and used gdal.Polygonize() function. With that I could produce thousands of small polygons but I only want a big ...
2
votes
2answers
391 views

How to convert CSV file in VRT

I use the gdal executable in QGIS file, with a DOS command. I have a csv file like this (test.csv) : X Y -5.48 42.81 -4.78 42.52 -5.06 42.02 This coordinates are GCP. I would like ...
1
vote
1answer
195 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
40 views

Selecting features from shapefile where field=“value” using Geopandas?

I don't understand the difference between OGR and Geopandas librairies. I have checked the documentation of GDAL as well as http://geopandas.org/ but I still don't get it. I just started learning ...
1
vote
4answers
2k views

Using gdal module with ArcPy?

I am trying to import gdal modules from osgeo installed in my win64x machine but I get the following error: Traceback (most recent call last): File "", line 1, in from osgeo import ogr ...
0
votes
0answers
25 views

How to save a georeferenced image in jpeg2000 in qgis?

I'm georeferencing an jpeg2000 image in qgis, but qgis is only capable to save it in geotif, but gdal would be able to save it in jpeg2000. How should i modify this script: "gdal_translate -of GTiff -...
0
votes
0answers
12 views

Error occurred in e:\sdk\vc9\gdal-2.1\gdal\ogr\ogrsf_frmts\openfilegdb\filegdbtable.cpp at line 717

I was trying to copy feature classes from file gdb to postgresql using ogr2ogr. Although some feature classes are copied successfully, I encountered some errors while copying other feature classes. I ...
9
votes
3answers
2k views

How to stop writeOGR from abbreviating Field Names when using “ESRI Shapefile” driver

I'm currently using the following script to add some attribute data from a table to lots of individual shapefiles: library(rgdal) specieslist <- read.csv("SpeciesList1.txt", header=F) attdata <-...
2
votes
1answer
12 views

Does GDALWARP have support for OpenCL speedup to orthorectification?

So I am attempting to orthorectify some images very large images. The process can take several hours so currently I am relying on using 8 threads to perform the speed up. However, the GPU does not ...
0
votes
1answer
287 views

“Too many points” when using gdal2tiles.py in EPSG:4326

I want to put a custom map onto cartodb, which, I believes, requires EPSG 4326. When I try making tiles with gdal2tiles, using a 4326 georeferenced image, I get the following error: ERROR 1: Too many ...
0
votes
1answer
24 views

How to convert tif to map

I need to convert a .tif file into a .map format. How can I do it? Is it possible using GDAL?
4
votes
1answer
76 views

Error trying to import data to CartoDB using ogr2ogr

I have a local install of CartoDB in my Ubuntu 14.04. I have created a CartoDB account called "development" and been playing with it for a while. Now I'd like to import some data from a shapefile ...
1
vote
2answers
1k views

GDAL/proj4 equirectangular projection coordinate system units assumed by OGRSpatialReference and GDALDataset::GetGeoTransform()?

How do I configure my OGRSpatialReference object to specify an equirectangular projection system http://en.wikipedia.org/wiki/Equirectangular_projection where the affine geo-transform matrix (provided ...
3
votes
2answers
526 views

GDAL with GEOS support, pandas and VTK using python on Windows?

So far I have been using OSGeo4W shell (or OSGEO install) as really convenient way to use python together with additional packages, namely gdal, shapely, numpy, scipy and matplotlib. I was happy till ...
0
votes
1answer
218 views

How to get projection data (.prj) of raster image using GDAL/OGR?

I start with a boundary shape-file (think U.S. states) in lat/long that I convert to some projection, and then rasterize the result as a .tif. What I need now are the raster coordinates of the ...
0
votes
0answers
21 views

Finding intersections in multiple files and exporting to single shapefile using OGR

I saw this solution using Shapely, but unfortunately I can't get Fiona to work with my Python IDE nor with OsGeo4W. I have a single shapefile that has a 500m buffer on about 350 trail polylines. I ...
0
votes
1answer
226 views

How to get elevation from dted only USGEO format using gdal apps

I need to get hieght by lat long position using gdal utilities
1
vote
1answer
188 views

Convert to lat-lon coordinates GDAL

I have a netCDF file and would like to convert it to LAT-LON coordinates. 1) I do not know the projection in the file but from the website of the data provider, the data is on a polar-stereographic (...
5
votes
2answers
2k views

GDAL - Perform Simple Least Cost Path Analysis

I am investigating methods to perform a simple least cost path analysis with gdal. By simple, I mean using the slope of a dem as the only cost factor. I would prefer to do using the python or .net ...
0
votes
1answer
13 views

Get GDAL to convert all four bands to a VRT from a NITF?

So I have a series of four band NITF images (RGB + Near Infrared). I am currently storing them in a VRT with gdal_translate. Unfortunately, gdal_translate keeps interperting the fourth band as an ...
0
votes
0answers
12 views

Extract a specific colour eg from geotiff file [closed]

I want to extract a specific colour(blue which actually represents a river) from a geotiff file. Do you know any python modules that can do it and perhaps the code for it?
9
votes
2answers
1k views

GeoTIFFs made in GDAL don't have min/max range when loaded in Arc/QGIS

I'm creating some floating point rasters in GDAL with the GeoTIFF driver. When I load the resulting images into QGIS or Arc the default symbology puts the min at -3.40282e38 and max to 3.40282e38, so ...
4
votes
2answers
525 views

Read DGN file in java or c#

I'm looking solution to read DGN file in java or c# without any success. Gdal makes many problem and doesn't support all element eg. complex element. Does anyone know of a library that supports the ...
1
vote
1answer
36 views

How can I read the TIFFTAG_DATETIME using GDAL in Python

I am currently using GDAL from Python to read and transform coordinates and that works well. I would now like to be able to read some of the none geographic tags, for example, TIFFTAG_DATETIME using ...
25
votes
6answers
2k views

Learning resources for GDAL?

I quite often get stuck trying to solve particular problems, or getting syntaxes right. Apart from the details provided in the links on GDAL Utilities, does anyone know of any 3rd party resources/...
3
votes
1answer
87 views

Visualizing netCDF file with unknown projection

I'm having a tough time visualizing a netCDF file with poor metadata in ArcMap, which is probably not a surprise. I know the file to contain ozone concentrations over the United States. If I try to ...
7
votes
1answer
388 views

How to store Large Raster Images of Equipotential Surface Generation Using Monte Carlo Simulation?

I have a large (1GB+) raster that I am using as the base for the generation of an equipotential surface. This is to assess the accuracy of DEMs derived from another source. In situ observation is ...
1
vote
1answer
17 views

Interpolation in Geoserver

I am new to use Java and Geoserver. I have a point sampling location (N,P,K Nutirients value for few fields spanning acroos few acres) on which I want to execute IDW or Natural Neighbourhood ...
0
votes
0answers
8 views

Creating HillShade or ColorRelief map with GDAL(GDALDEMProcessing function) and C++?

I'm trying to show DEM file with GDAL and C++ and OpenCV. I have mastered to GDALDataset::RasterIO and GDALRasterBand::ReadBlock. recently, i know that gdaldem.exe is in GDAL for create HillShade or ...
3
votes
0answers
624 views

How does gdal_calc numpy operators work?

Gdal_calc manual Gdal_calc is introduced as : gdal_calc.py - Command line raster calculator with numpy syntax gdal_calc.py [-A <filename>] [--A_band] [-B...-Z filename] [other_options] OPTIONS:...