![Forrest logo](/images/logo.png)
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.
- 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.
- 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.
- It supports different data types such as floating-point, integer, and complex numbers.
- gdal_translate provides the flexibility to modify various aspects of the output file, such as its size, resolution, projection, and data type.
- You can clip or subset raster datasets using gdal_translate based on either pixel coordinates or a defined geographic region of interest.
- Different resampling methods, like nearest-neighbor, bilinear, or cubic convolution, can be chosen to control the output pixel values during reprojection or rescaling.
- The tool provides options to assign or modify georeferencing information, including the spatial reference system (SRS), coordinate transformation, and corner coordinates.
- gdal_translate supports adding metadata to the output files, allowing you to include additional information about the data.
- It helps convert raw satellite imagery into usable formats for further analysis or visualization.
- 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 machineexplain 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 machineexplain 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 machineexplain 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=LZWtry on your machineexplain this command