Forrest logo
tool overview
On this page you find all important commands for the CLI tool gdal_translate. If the command you are looking for is missing please ask our AI.

gdal_translate

GDAL (Geospatial Data Abstraction Library) is a powerful open-source command line tool for converting raster geospatial data formats. One of the key components of GDAL is the gdal_translate tool.

  1. The gdal_translate tool allows you to transform raster datasets from one format to another, outputting them in various popular formats such as GeoTIFF, JPEG, or ASCII grid.
  2. It supports a wide range of input formats, including commonly used formats like GeoTIFF, JPEG, PNG, and ECW, as well as lesser-known or industry-specific ones.
  3. It supports different data types such as floating-point, integer, and complex numbers.
  4. gdal_translate provides the flexibility to modify various aspects of the output file, such as its size, resolution, projection, and data type.
  5. You can clip or subset raster datasets using gdal_translate based on either pixel coordinates or a defined geographic region of interest.
  6. Different resampling methods, like nearest-neighbor, bilinear, or cubic convolution, can be chosen to control the output pixel values during reprojection or rescaling.
  7. The tool provides options to assign or modify georeferencing information, including the spatial reference system (SRS), coordinate transformation, and corner coordinates.
  8. gdal_translate supports adding metadata to the output files, allowing you to include additional information about the data.
  9. It helps convert raw satellite imagery into usable formats for further analysis or visualization.
  10. GDAL's gdal_translate is widely used in geospatial data processing workflows, remote sensing, GIS analysis, and map production applications.

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
tool overview