Difference between revisions of "GDAL Tips and Tricks"
Ellis Symons (talk | contribs) |
Ellis Symons (talk | contribs) |
||
Line 2: | Line 2: | ||
==Getting Started== | ==Getting Started== | ||
− | The below describes three methods of getting setup with the GDAL programs. If you have QGIS installed, then it is recommended to use the first method below as you will already have GDAL on your computer. The second method describes how to install GDAL separate to QGIS using OSGeo4W. Finally the third method describes how to manually install GDAL separately. This can be useful as it doesn't require installation (and therefore does not require admininstrator rights). These methods do not | + | The below describes three methods of getting setup with the GDAL programs. If you have QGIS installed, then it is recommended to use the first method below as you will already have GDAL on your computer. The second method describes how to install GDAL separate to QGIS using OSGeo4W. Finally the third method describes how to manually install GDAL separately. This can be useful as it doesn't require installation (and therefore does not require admininstrator rights). These methods only relate to the pre-comiled programs and do not provide information on compiling, Python bindings, or installation via Conda. |
* '''<u>[[Getting_Setup_With_GDAL_Using_QGIS_Installation | Getting setup with GDAL using QGIS installation]]</u>''' | * '''<u>[[Getting_Setup_With_GDAL_Using_QGIS_Installation | Getting setup with GDAL using QGIS installation]]</u>''' | ||
* '''<u>[[Getting_Setup_With_GDAL_Using_OSGeo4W | Getting setup with GDAL using OSGeo4W]]</u>''' | * '''<u>[[Getting_Setup_With_GDAL_Using_OSGeo4W | Getting setup with GDAL using OSGeo4W]]</u>''' |
Revision as of 01:32, 12 April 2022
GDAL is a translator library for raster and vector data formats. It is used by some GIS software (e.g. QGIS) as the underlying libraries for reading, writing, and some processing of spatial data. GDAL also creates many standalone command line applications (similar to the TUFLOW Utilities) that can be more convenient to use directly rather than using GIS software. This page describes some of these programs with examples that TUFLOW modellers may find useful. This is not an exhaustive list of examples, for more information please visit gdal.org.
Getting Started
The below describes three methods of getting setup with the GDAL programs. If you have QGIS installed, then it is recommended to use the first method below as you will already have GDAL on your computer. The second method describes how to install GDAL separate to QGIS using OSGeo4W. Finally the third method describes how to manually install GDAL separately. This can be useful as it doesn't require installation (and therefore does not require admininstrator rights). These methods only relate to the pre-comiled programs and do not provide information on compiling, Python bindings, or installation via Conda.
- Getting setup with GDAL using QGIS installation
- Getting setup with GDAL using OSGeo4W
- Getting setup with GDAL manually
GDAL Programs
- ogr2ogr.exe - OGR is the vector library sub-module of GDAL. "ogr2ogr.exe" is the program that is used to convert between vector formats.
- gdal_transalte.exe - GDAL is the raster library sub-module of GDAL. "gdal_translate" is the program that is used to convert between raster formats.