mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
gdal_translate: add page (#8272)
This commit is contained in:
parent
21d32a1a00
commit
6ab6eb95de
1 changed files with 20 additions and 0 deletions
20
pages/common/gdal_translate.md
Normal file
20
pages/common/gdal_translate.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# gdal_translate
|
||||
|
||||
> Convert raster data between different formats.
|
||||
> More information: <https://gdal.org/programs/gdal_translate>.
|
||||
|
||||
- Convert a raster dataset to JPEG format:
|
||||
|
||||
`gdal_translate -of {{JPEG}} {{path/to/input.tif}} {{path/to/output.jpeg}}`
|
||||
|
||||
- Assign a projection to a raster dataset:
|
||||
|
||||
`gdal_translate -a_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}`
|
||||
|
||||
- Reduce the size of a raster dataset to a specific fraction:
|
||||
|
||||
`gdal_translate -outsize {{40%}} {{40%}} {{path/to/input.tif}} {{path/to/output.tif}}`
|
||||
|
||||
- Convert a GeoTiff to a Cloud Optimized GeoTiff:
|
||||
|
||||
`gdal_translate {{path/to/input.tif}} {{path/to/output.tif}} -of COG -co COMPRESS=LZW`
|
Loading…
Add table
Reference in a new issue