Closed scottyhq closed 1 year ago
Looks like it is being passed in:
@scottyhq are you able to upload the file to this issue?
@snowman2 yes! should that just be **vrt.warp_extras
? otherwise I think the dictionary is passed and not expanded/recognized when the IO eventually happens:
'transform': None, 'dtype': None, 'warp_extras': {'SRC_METHOD': 'GCP_TPS', 'init_dest': 'NO_DATA'}}
i think the signed url above is publicly accessible for a week?
should that just be **vrt.warp_extras
Good catch! Yes, I think that is it. Did you want to submit a PR with the fix?
339 illustrated passing transform options to rio.reproject(), and in theory I think you should be able to pass those to rasterio.vrt.WarpedVRT() for example to open a file with GCPs and have the reprojection and resampling handled by GDAL upon reading.
But it seems options like SRC_METHOD: GCP_TPS are currently ignored:
Code Sample, a copy-pastable example if possible
Expected Output
vrt.shape == da.rio.shape == (28283, 29342)
Environment Information