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
votes
0answers
8 views

How to draw curve in open source Dotspatial? [on hold]

I'm verry tire when trying draw curve using opensource Dotspatial. And I have a question, how to draw curve using Dotspatial? Thanks!
1
vote
2answers
12 views

OSGeo4W (gdal 2.1.0) and gdal2tiles

I've tried the x86 and x64 versions of OSGeo4W, but gdal2tiles is missing. Has gdal2tiles been removed from OSGeo4W? -={ OSGeo4W Shell Commands }=- bmp2tiff msencrypt ...
0
votes
0answers
24 views

GDAL Raster plugin doesn't work

I am connected to Oracle, using QGIS and can see the vector data table. I am trying to use the GDAL Raster plugin to view raster data, in QGIS. When I click on the Oracle GeoRaster plugin, get a ...
1
vote
0answers
37 views

How to find the coordinate system info from a LAS/Lidar file with python?

I found several examples of how one can query and manually set a coordinate system on a tif/raster file (GDAL/Python: How do I get coordinate system name from SpatialReference? or Is it possible to ...
0
votes
1answer
15 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
35 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 ...
2
votes
1answer
19 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
31 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
46 views

How to install gdal postgresql driver 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 ...
0
votes
0answers
30 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
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
1answer
27 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....
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 “...
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 ...
3
votes
1answer
29 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
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 ...
0
votes
0answers
27 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
1answer
36 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 ...
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 ...
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
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?
0
votes
0answers
22 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
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 ...
2
votes
1answer
13 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 ...
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 ...
0
votes
0answers
10 views

Setting custom opacity (transparency) level of geotiff with GDAL

I am struggling with a seemingly simple task. I want to create georeferenced image of nicely visualized terrain data like here, but not only display-wise within QGIS, but as an actual file by using ...
1
vote
0answers
17 views

Trying to get all Landscan Urban areas in the USA (from Natural World shp files)

I'm desperately trying to get a json file of all the Landscan urban areas in the USA. The ne_10m_urban_areas_landscan.shp has a list containing polygons of all urban areas in the world with a NAME ...
5
votes
4answers
113 views

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

GDAL online courses and Books with tutorials [closed]

I feel I have progressed well with some GDAL functionality including some novel uses of calc but I feel I am missing so much more. I would like to learn more particularly when it comes to raster data ...
0
votes
0answers
21 views

How to create raster layer directly from numpy array in QGIS, without saving to file?

I have managed to create a numpy array from a raster file using commands from the gdal library, and now I would like to load that raster as a layer without saving it first. It seems like there should ...
2
votes
0answers
12 views

Problem opening JP2 image using GDAL (interaction of -stats and -hist flags)

I came across unexpected GDAL behaviour while working with Sentinel-2 data granules. The Sentinel data should have values between 0 and 10000 when opened correctly. However, I have noticed that when ...
0
votes
1answer
11 views

How to project a large nonortho satelite image on a much smaller high res DEM?

I am currently attempting to orthorectify an image using GDAL. I have a very detailed DEM that I would like to rectify the image on top of. However, the DEM is smaller than the image itself; this is ...
4
votes
1answer
49 views

gdal_translate and remote file location

Environment: Win10 and GDAL 2.1.0 in the OSGEO4W shell, 64 bit. Edits made below. I have temporary access to a whole-of-country dataset in ESRI's Arc/Info binary grid format, which according to this -...
0
votes
1answer
30 views

Numpy raster reclassify outputs only 2 out of 6 classes

I have a raster (.tif) which I want to classify (6 classes) using gdal, python and numpy. The cell values range from: MIN = -30.9847 to MAX = 7.3505. From the first two answers in this question, I've ...
0
votes
0answers
17 views

Where can i use web processing service (WPS-Client) as service in web portals and browsers

I have seen geoserver's web map service and web feature services on web portals for the user applications like visit 1. http://wmsviewer-rodis.rhcloud.com/ 2.http:...
0
votes
0answers
31 views

Error when using gdal_calc.py

I'm trying to perform some raster calculations (ex:A+B, A*(A>0)) using gdal_calc.py, but I'm stuck with an error when I try to make this simple test command: import subprocess import sys ...
1
vote
0answers
28 views

Multiband virtual raster with gdalbuildvrt: Control how bands are sorted

I am making a multiband virtual raster using gdalbuildvrt. Everything works fine, but a little detail remains annoying: I cannot control how the bands are sorted. I specified the input raster using ...
0
votes
1answer
47 views

Build GEOTiff file using Python GDAL

Is there a way to add data to a GEOTiff file in a loop? I can make one using WriteArray like so: dataset.GetRasterBand(1).WriteArray(array) But whenever I put it in a for loop it just overwrites ...
0
votes
0answers
33 views

installing GDAL on cent os7 setup.py egg_info failed

I saw this post here: Install GDAL on CentOS 7 And got the EPEL 7 installed, then did a sudo yum install gdal and it did its thing without errors. However when trying to do a sudo pip install gdal ...
1
vote
0answers
21 views

GDAL VRT - gap artifact in output

I have created a VRT using gdalbuildvrt from three single-band GeoTiffs (1-m resolution) as follows: gdalbuildvrt chm_2157.vrt P_712806_CHM.tif P_712808_CHM.tif P_712810_CHM.tif -a_srs 'epsg:2157' -...
0
votes
3answers
38 views

GDAL merge warp has black block can't remove

I have been using the gdal to merger a lot of *.tif files to get one big arear, I always get the blackblocks I tried GDAL merge and GDAL warp but none of them seems working. Does anyone know where ...
1
vote
1answer
38 views

Python GDAL API: .Transform(osr.CoordinateTransformation(…), …)

A have input .tif files and geojson with different EPGS. I'm trying to use osr.CoordinateTransformation(source, target) method which takes 2 arguments of EPGS like on this cookbook. So how can I get ...
1
vote
3answers
33 views

Maximum altitude in polygons [closed]

I have a shapefile having 1000s of non overlapping polygons. I have got seamless layer of DEMs which cover the full extend of this polygon shapefile. I want to find out the maximum altitude value in ...
0
votes
0answers
53 views

Writing shapefile to SQL Server database with ogr2ogr Error

I have been using ogr2ogr to write point shapefiles to a SQL Server Database of mine. I used it 2 weeks ago and it worked fine, but, today when I tried to run it, I get the following error: ERROR1: ...
0
votes
0answers
17 views

Merging two 3 bands images with gdal tools into one file

I have two Rgb1.tif and rgb2.tif images that has the same extent that I need to merge together. Reason is that one image only have left side of the image and the other the right side. Theres no ...
1
vote
1answer
21 views

Getting DEM data programmatically with libgdal?

I'm writing a specialized tool in C to work with DEM data (typically GeoTIFF files, but one of the reasons I'm using libgdal is to leverage its ability to read multiple formats). I'm able to open a ...
0
votes
0answers
21 views

gdalwarp not clipping VRT to correct extent

I'm trying to clip a projected .vrt raster to an extent expressed in GCS coordinates and it's not doing what I would expect. Here is my command: gdalwarp -te -133.08813624 56.69042536 -132.69405069 ...
0
votes
0answers
13 views

Referencing DEM tif to MSL using GDAL?

I have a single band DEM tif representing elevation. How can I reference it to a datum and convert it to MSL altitudes? I'm using GDAL command line tool but don't know where to start. I looked at ...
3
votes
2answers
22 views

GDAL pre-allocates raster file

I am using GDAL 2.01 SWIG in C# to create an imagine file. When I call Create it pre-allocates the entire file, so if I am writing a 80GB file it I have to wait for it to allocate the 80GB file ...