Questions tagged [gdal]

GDAL (Geospatial Data Abstraction Library) is an open source translator library for raster and vector geospatial 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 useful commandline utilities for data translation and processing.

6191 questions
20
votes
1 answer

Why do people pronounce GDAL (Geospatial Data Abstraction Library) like goo-dal?

Ok, a bit of a silly question, but: I've heard people pronouncing the library GDAL (Geospatial Data Abstraction Library) like goooo-dal. My natural inclination was to pronounce it geeee-dal, as in the letter 'g'-dal. Any explanation on how…
bcollins
  • 3,563
  • 2
  • 18
  • 38
11
votes
1 answer

Why does gdal use only one core?

I run gdal2tiles on debian machine with 4 cores: sudo /usr/bin/gdal2tiles.py -r cubic -a 0,0,0 -z 10-15 /home/adm/topo/ekb.vrt /var/www/tiles In htop I see: Why does gdal use only one core in work? Gdal version is 2.1.2.
Kliver Max
  • 2,032
  • 2
  • 31
  • 58
11
votes
2 answers

Using GDAL to merge 3 bands to form a multispectral image?

I have 3 separate *.tif image files as grayscale. They are representing data acquired with a scanner. Each of them is a separate band of the scanner; red, green, and blue. I would like to reassemble them in a single RGB *.tif image file. Using…
swiss_knight
  • 10,309
  • 9
  • 45
  • 117
9
votes
1 answer

Specify directories for use with gdaltindex

I'd like to use gdaltindex to create a polygon shapefile of thousands of georeferenced .tif documents. I've found this incredibly easy to accomplish in a single directory on Linux (e.g. gdaltindex indexoutput.shp *.tif) but I'll also need to index…
Paul
  • 2,009
  • 1
  • 19
  • 28
7
votes
3 answers

How to remove black edges on georeferenced images with GDAL

After an image has been georeferenced the transformation creates black edges, how could I set these to white instead of black using GDAL? Would I have to somehow create a colour table and set nodata to white?
Robert Buckley
  • 10,175
  • 14
  • 76
  • 156
6
votes
2 answers

gdalwarp in a bash shell for loop

I would like mask several images in bash shell, gdalwarp works for me as a simple single line command: gdalwarp -cutline mask.shp -cwhere 'kepnev="a.tif"' -crop_to_cutline a.tif a_masked.tif ..but it dosen't work with for loop: for kep in…
user4526
  • 63
  • 1
  • 3
5
votes
1 answer

How can I add all the 4 corners as GCP in an image that I want to reproject?

I am working on a Modis - oceancolor image and I want to reproject it to wgs84. I have the upper left/right and lower left/right values from the metadata of the image and I want to add them all in the command line of gdal_translate or gdal_warp. But…
Vilen
  • 139
  • 1
  • 6
5
votes
2 answers

Tiling high resolution image using GDAL tools

I have a .tif image that I georeferenced using QGIS utility. It was originally in UTM with NAD83 as datum. I need to make tiles out of it and get a kml file to overlay onto google earth. Here's how I am doing it: gdal2tiles.py -p geodetic -k…
Akd
  • 399
  • 2
  • 5
  • 10
5
votes
0 answers

Gdal.open crashes python for some .tif images

I just upgraded to GDAL 2.2.0 and now I'm having issues with my python kernel crashing when I run gdal.Open() on certain files that it used to work on when I had GDAL 2.1.2. It seems to only be crashing on images I have created with gdal_translate…
Snow
  • 51
  • 1
5
votes
1 answer

Overflow when using projwin with gdal_translate

Given the following dataset: Driver: GTiff/GeoTIFF Files: eudem_dem_3035_europe.tif Size is 240000, 200000 Coordinate System is: PROJCS["ETRS89 / LAEA Europe", GEOGCS["ETRS89", DATUM["European_Terrestrial_Reference_System_1989", …
Poul K. Sørensen
  • 1,077
  • 2
  • 12
  • 24
5
votes
2 answers

Using rasters with different dimensions in GDAL_calc.py

I am processing several large (>40GB) geotiffs with GDAL_CALC.py and I encountered this error when attempting the process: Error! Dimensions of file image.tif (198000, 126000) are different from other files (198752, 126000). Cannot…
Cliff
  • 831
  • 8
  • 18
5
votes
2 answers

How to install stable GDAL on Ubuntu 11.10?

I am trying to install the stable ubuntu package from here https://launchpad.net/~ubuntugis/+archive/ppa/+packages on my ubuntu 11.10 server I have added the ubuntugis stable repository to server's list of software sources with these commands sudo…
Vish
  • 607
  • 2
  • 6
  • 11
5
votes
3 answers

How can I merge geotiffs with a vrt file?

I have heard that I can use a vrt file to merge multiple geotiffs into one? what is the syntax? gdal_tranlsate -of VRT file1.tif file2.tif file2.tif Something like this?
Robert Buckley
  • 10,175
  • 14
  • 76
  • 156
4
votes
2 answers

How to batch "gdal_merge" on Win7 in one command line command?

I want to create a mosaic of all tif files in a directory on windows 7. How could I create a one-line command in the windows command line to loop through all tifs and merge them all together using gdal_merge.py? I tried this; for %i in (*.tif) do…
Robert Buckley
  • 10,175
  • 14
  • 76
  • 156
4
votes
1 answer

Retrieve value by geographic coordinate from GeoTIFF with GDAL/C++

Given a GeoTIFF height map image, how can an altitude value be read at a given latitude/longitude using C++ and GDAL?
Ralf Ebert
  • 181
  • 6
1
2 3
11 12