Raster Format Conversion Using gdal translate: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Ellis Symons (talk | contribs) Created page with "This page lists useful batch file examples for using gdal_translate.exe. For complete documentation on this tool please visit '''<u>[https://gdal.org/programs/gdal_translate.h..." |
Ellis Symons (talk | contribs) No edit summary |
||
| Line 10: | Line 10: | ||
'''GeoTIFF to ASC'''<br> |
'''GeoTIFF to ASC'''<br> |
||
:* ''<tt>-co</tt>'': (Creation Option) - output format specific option |
:* ''<tt>-co</tt>'': (Creation Option) - output format specific option |
||
:** ''<tt>SIGNIFICANT_DIGITS |
:** ''<tt>SIGNIFICANT_DIGITS</tt>'': limits the precision |
||
<pre>gdal_translate.exe -of AAIGrid -co SIGNIFICANT_DIGITS=8 DEM_M01_5m.asc DEM_M01_5m.gpkg</pre> |
<pre>gdal_translate.exe -of AAIGrid -co SIGNIFICANT_DIGITS=8 DEM_M01_5m.asc DEM_M01_5m.gpkg</pre> |
||
Revision as of 22:47, 11 April 2022
This page lists useful batch file examples for using gdal_translate.exe. For complete documentation on this tool please visit gdal.org/programs/gdal_translate
Basic Format Conversion=
Format conversion can be done using "-of <format_name>" then specifying the "<source_dataset> <destination_dataset>".
ASC to GeoTIFF
gdal_translate.exe -of GTiff DEM_M01_5m.asc DEM_M01_5m.tif
ASC to GPKG
gdal_translate.exe -of GPKG DEM_M01_5m.asc DEM_M01_5m.gpkg
GeoTIFF to ASC
- -co: (Creation Option) - output format specific option
- SIGNIFICANT_DIGITS: limits the precision
- -co: (Creation Option) - output format specific option
gdal_translate.exe -of AAIGrid -co SIGNIFICANT_DIGITS=8 DEM_M01_5m.asc DEM_M01_5m.gpkg