Forrest logo
back to context overview

gdal_translate

List of commands for gdal_translate:

  • gdal_translate:tldr:22155 gdal_translate: Assign a projection to a raster dataset.
    $ gdal_translate -a_srs ${EPSG:4326} ${path-to-input-tif} ${path-to-output-tif}
    try on your machine
    explain this command
  • gdal_translate:tldr:decc6 gdal_translate: Reduce the size of a raster dataset to a specific fraction.
    $ gdal_translate -outsize ${40%} ${40%} ${path-to-input-tif} ${path-to-output-tif}
    try on your machine
    explain this command
  • gdal_translate:tldr:edf9b gdal_translate: Convert a raster dataset to JPEG format.
    $ gdal_translate -of ${JPEG} ${path-to-input-tif} ${path-to-output-jpeg}
    try on your machine
    explain this command
  • gdal_translate:tldr:fbe51 gdal_translate: Convert a GeoTiff to a Cloud Optimized GeoTiff.
    $ gdal_translate ${path-to-input-tif} ${path-to-output-tif} -of COG -co COMPRESS=LZW
    try on your machine
    explain this command
back to context overview