Warning: Declaration of syntax_plugin_alertbox::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /homepages/38/d684553722/htdocs/clickandbuilds/spatialecology_wiki/lib/plugins/alertbox/syntax.php on line 22

Warning: Declaration of syntax_plugin_alertbox::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /homepages/38/d684553722/htdocs/clickandbuilds/spatialecology_wiki/lib/plugins/alertbox/syntax.php on line 45

Warning: Declaration of syntax_plugin_bliki::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /homepages/38/d684553722/htdocs/clickandbuilds/spatialecology_wiki/lib/plugins/bliki/syntax.php on line 75

Warning: Declaration of syntax_plugin_bliki::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /homepages/38/d684553722/htdocs/clickandbuilds/spatialecology_wiki/lib/plugins/bliki/syntax.php on line 379
wiki:gdal []

User Tools

Site Tools


wiki:gdal

GDAL and OGR

GDAL is a command-line library that can be used for raster data pre-processing.
OGR is a command-line library that can be used for vector data.
Why use gdal and ogr?

  • Several raster and vector applications are already available in your shell.
  • They support all the different raster and vector formats.
  • Command line.
  • Can be combined in a bash language and therefore integrate in a script.
  • You can create your geo-tools.
  • NO FILE SIZE LIMITATION
  • Very fast
  • They are the basic libraries that GRASS use to import and export data.


You can access to gdal/ogr command by typing gdal or ogr and then press Tab twice. A list of all the gdal commands will be listed.

The projection types are defined by the EPSG codes. They are used to define and change a projection. A list of the EPSG codes can be found here

GDAL and OGR Tutorials

GDAL and OGR exercises

These exercises use the scripts and data stored in ~/ost4sem/exercise/basicadvgdalogr

You can open the scripts by kate and copy/paste the lines to the terminal.

You can can also interact with the shell using other commands and inserting comments in the editor.
You can run it directly by:

sh file_name.sh 
wiki/gdal.txt · Last modified: 2021/01/20 20:36 (external edit)