Skip to content

Instantly share code, notes, and snippets.

@jarnaldich
Created March 28, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarnaldich/93952c9d3fbedc766d6e1408a450d2af to your computer and use it in GitHub Desktop.
Save jarnaldich/93952c9d3fbedc766d6e1408a450d2af to your computer and use it in GitHub Desktop.
[TFW from GCPs with RasterIO] #gdal #rasterio
from affine import dumpsw
ts = rio.transform.from_gcps(ds.gcps[0])
open(r"e:\public\aerot\1988040011117.tfw", 'w').write(dumpsw(ts))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment