Difference between revisions of "GDAL"

From openwfm
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 22: Line 22:
  
 
==External links==
 
==External links==
 +
* https://gis.stackexchange.com/questions/164853/reading-modifying-and-writing-a-geotiff-with-gdal-in-python
 +
* https://spatialreference.org/ translation of EPSG codes and proj4 etc.
 +
* https://medium.com/planet-stories/a-gentle-introduction-to-gdal-part-1-a3253eb96082
 +
* https://gis.stackexchange.com/questions/33330/how-do-i-extract-a-rasters-extent-in-python
 +
* [https://gis.stackexchange.com/questions/175293/difference-between-datum-and-ellipsoid-for-geodetic-coordinates Datum and ellipsoid are not the same thing]
 
* [https://gis.stackexchange.com/questions/42584/how-to-call-gdal-translate-from-python-code How to call gdal translate from python code]
 
* [https://gis.stackexchange.com/questions/42584/how-to-call-gdal-translate-from-python-code How to call gdal translate from python code]
 +
* [https://automating-gis-processes.github.io/2016/Lesson7-read-raster.html Reading raster files with GDAL]
 
* [http://erouault.blogspot.com/2015/10/gdal-and-ogr-utilities-as-library.html GDAL and OGR utilities as library]
 
* [http://erouault.blogspot.com/2015/10/gdal-and-ogr-utilities-as-library.html GDAL and OGR utilities as library]
 
* [https://stackoverflow.com/questions/2922532/obtain-latitude-and-longitude-from-a-geotiff-file Obtain latitude and longitude from a GeoTIFF file]
 
* [https://stackoverflow.com/questions/2922532/obtain-latitude-and-longitude-from-a-geotiff-file Obtain latitude and longitude from a GeoTIFF file]
Line 41: Line 47:
 
* http://pyproj4.github.io/pyproj/html/api/geod.html
 
* http://pyproj4.github.io/pyproj/html/api/geod.html
 
* https://janakiev.com/blog/gps-points-distance-python/
 
* https://janakiev.com/blog/gps-points-distance-python/
* https://trac.osgeo.org/gdal/ticket/4267
+
* https://trac.osgeo.org/gdal/ticket/4267 on stereo projection
  
 
==Glossary==
 
==Glossary==

Latest revision as of 22:27, 11 June 2019

Installation

Best install using standard system package manager, such as apt-get (Ubuntu), yum (Fedora), or macports (OSX).

Download

The current download page is http://download.osgeo.org/gdal/. However, web searches for the code or documentation lead to many dead links to defuncts sites. In particular, almost all links leading inside https://gdal.org/ from internet search engines are dead.

Documentation

How to

Subset a dataset

gdal_translate -projwin_srs '+proj=longlat +datum=WGS84 +no_defs' -projwin -120 39 -119 38 file.tif subset.tif
gdal_translate -projwin_srs '+proj=stere +lat_0=38.5 +lon_0=-119.5 +datum=WGS84 +units=km +no_defs' -projwin -50 50 50 -50 file.tif subset.tif

External links

Glossary

See also