Difference between revisions of "GDAL Tips and Tricks"

From Tuflow
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
==Getting Started==
 
==Getting Started==
The below describes two 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 download the GDAL programs as separate programs. This can be useful as they don't require installation (and therefore does not require admininstrator rights). The third method is using OSGeo4W to install GDAL separately, however this may require administrator rights.
+
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 separately to QGIS using OSGeo4W. Finally the third method describes how to manually install GDAL separately to QGIS. 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
+
* '''<u>[[Getting_Setup_With_GDAL_Using_QGIS_Installation | Getting setup with GDAL using QGIS installation]]</u>'''
* Getting setup with GDAL without QGIS
+
* '''<u>[[Getting_Setup_With_GDAL_Using_OSGeo4W | Getting setup with GDAL using OSGeo4W]]</u>'''
* Getting setup with GDAL using OSGeo4W
+
* '''<u>[[Getting_Setup_With_GDAL_Manually | Getting setup with GDAL manually]]</u>'''
  
 
==GDAL Programs==
 
==GDAL Programs==
* [[Vector_Format_Conversion_Using_ogr2ogr | ogr2ogr.exe]] - OGR is the vector library sub-module of GDAL. "ogr2ogr.exe" is the program that is used to convert between vector formats.
+
* <u>'''[[Vector_Format_Conversion_Using_ogr2ogr | ogr2ogr.exe]]'''</u> - OGR is the vector library sub-module of GDAL. "ogr2ogr.exe" is the program that is used to convert between vector formats.
* [[Raster_Format_Conversion_Using_gdal_translate | 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.
+
* <u>'''[[Raster_Format_Conversion_Using_gdal_translate | gdal_translate.exe]]'''</u> - GDAL is the raster library sub-module of GDAL. "gdal_translate" is the program that is used to convert between raster formats.
 +
<br>
 +
<br>
 +
{{Tips Navigation
 +
|uplink=[[Main_Page | Back to Main Page]]
 +
}}

Latest revision as of 02:20, 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 separately to QGIS using OSGeo4W. Finally the third method describes how to manually install GDAL separately to QGIS. 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.

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_translate.exe - GDAL is the raster library sub-module of GDAL. "gdal_translate" is the program that is used to convert between raster formats.



Up
Go-up.png Back to Main Page