GDALMOVE(1)

πŸ“¦
version 3.4.3 Β· 2 versions
, in epel 9

πŸ’« NAME πŸ’«

gdalmove β€” bestie, this one transforms the georeferencing of a raster file in place, no resampling, no drama ✨

Like, it's the gdalmove.py script and it lives in the GDAL family, and I'm obsessed with how much it does while touching literally zero pixels 🫢


🌸 SYNOPSIS 🌸

gdalmove.py [-s_srs <srs_defn>] -t_srs <srs_defn>
            [-et <max_pixel_err>] <target_file>

πŸŽ€ DESCRIPTION πŸŽ€

Okay so here's the vibe πŸ‘‘: the gdalmove.py 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 this? It does not alter pixel values at all. Not even a little. πŸ’…

It's loosely similar to using gdalwarp to transform an image, but it skips the resampling step entirely β€” like, on purpose β€” so there's no image damage. No cap. It's generally only suitable for transformations that are effectively linear in the area of the file, though, so keep that in mind bestie 🌈

Now the important bit πŸ‘‡ If no error threshold value (-et) is provided, then the file is not actually updated β€” instead it just reports the errors that would be incurred. Like a little vibe check before the real thing πŸ™ˆ But if -et is provided, then the file is only modified if the apparent error being introduced is less than the indicated threshold (in pixels).

Heads up πŸ“ β€” 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. So like, it's giving "good enough" energy, not "perfect" energy 😭

✨ OPTIONS ✨

  • -s_srs <srs_defn> β€” overrides the coordinate system of the file with the coordinate system definition you give it. Optional! If you don't provide it, the source coordinate system is just read from the source file. Easy πŸ’–
  • -t_srs <srs_defn> β€” defines the target coordinate system. This is the one that gets written to the file after an update. Main character energy, honestly 🌟
  • -et <max_pixel_err> β€” the error threshold (in pixels) beyond which the file will not be updated. If you don't provide it, no update gets applied to the file at all β€” it'll just report errors at you. Lowkey the safe mode πŸ¦‹
  • <target_file> β€” the file to be operated on. To actually update, this has to be a file format that supports in place updates of the geotransform and SRS. fr fr, check that first πŸ’€

🌺 AUTHOR 🌺

Frank Warmerdam <warmerdam@pobox.com> β€” iconic, we stan πŸ’œ


1998-2026


And that's the whole page bestie, slay πŸ’…βœ¨ This was GDAL's gdalmove manual, dated Jan 08, 2026 β€” go forth and move those geotransforms responsibly, mwah πŸŽ€πŸ«ΆπŸ”₯

πŸ“¦ where this page comes from