GDALMOVE(1)
β¨ NAME β¨
gdalmove β transform the georeferencing of a raster file in place, like a glow-up for your geotransform π
(hey bestie, this one lives in the GDAL family, section 1 of the manual, iykyk)
πΈ SYNOPSIS πΈ
gdalmove [--help] [--help-general]
[-s_srs <srs_defn>] -t_srs <srs_defn>
[-et <max_pixel_err>] <target_file>
π¦ DESCRIPTION π¦
okay so. the gdalmove script takes the bounds of a raster file and transforms them from one coordinate system to another, then updates the coordinate system and the geotransform of the file. and the way it does it? it does not touch the pixel values. at all. not even a little bit. π«Ά
it's loosely similar to using gdalwarp to transform an image, but it skips the resampling step entirely so that your image doesn't get damaged. it's generally only suitable for transformations that are effectively linear in the area of the file. so like, cute transformations only, no chaotic ones.
if no error threshold value (-et) is provided, then the file is not actually updated β instead the errors that would be incurred get reported to you. it's giving "let's just see what would happen" energy π«£. if -et is provided, then the file is only modified if the apparent error being introduced is less than the indicated threshold (in pixels).
currently, the transformed geotransform is computed based on the transformation of the top left, top right, and bottom left corners. a reduced overall error could be produced using a least squares fit of at least all four corner points.
NOTE: π¨ gdalmove is a Python utility, and it's only available if GDAL Python bindings are available. no bindings, no vibes, sorry bestie π
and here are the flags, one by one, no skipping:
--helpβ Show this help message and exit β¨--help-generalβ Gives a brief usage message for the generic GDAL commandline options and exit.-s_srs <srs_defn>β Override the coordinate system of the file with the indicated coordinate system definition. Optional! if you don't provide it, the source coordinate system is read from the source file. π-t_srs <srs_defn>β Defines the target coordinate system. this coordinate system will be written to the file after an update. this is the main character of the operation, lowkey π-et <max_pixel_err>β The error threshold (in pixels) beyond which the file will not be updated. if it's not provided, no update will be applied to the file, but errors will be reported. π<target_file>β The file to be operated on. to update this, it must be a file format that supports in place updates of the geotransform and SRS. no in-place support? no update, periodt.
π RETURN STATUS CODE π
the program returns status code 0 in case of success, and non-zero in case of error (non-blocking errors emitted as warnings are considered as a successful execution β yes bestie, warnings are not the end of the world π§).
π AUTHOR π
Frank Warmerdam <warmerdam@pobox.com>
π COPYRIGHT π
1998-2026
okay that's the whole page, you ate that π and just so you know where this came from: it's the GDAL source, version dated Aug 18, 2026, and it's page GDALMOVE(1) of the manual. slay, love u, go transform something πβ¨
π¦ where this page comes from
- alpine 3.24: gdal-doc 3.13.3-r0 Β· MIT
- arch rolling: gdal 3.13.3-6 Β· MIT
- ubuntu stonking: gdal-bin 3.13.3+dfsg-1ubuntu4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms