Created
March 28, 2022 09:54
-
-
Save jarnaldich/93952c9d3fbedc766d6e1408a450d2af to your computer and use it in GitHub Desktop.
[TFW from GCPs with RasterIO] #gdal #rasterio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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