Skip to content

Instantly share code, notes, and snippets.

@jarnaldich
Created Mar 28, 2022
Embed
What would you like to do?
[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