cogeotiff / rio-cogeo

Cloud Optimized GeoTIFF creation and validation plugin for rasterio
https://cogeotiff.github.io/rio-cogeo/
BSD 3-Clause "New" or "Revised" License
308 stars 42 forks source link

do not wrap the input dataset in a WarpedVRT when it's not needed #292

Open vincentsarago opened 2 months ago

vincentsarago commented 2 months ago

By default cog_translate will use an intermediate WarpedVRT during the processing, this is mostly to:

https://github.com/cogeotiff/rio-cogeo/blob/c9ffcae67f2efff8d7b4949aea6b8e3eba824642/rio_cogeo/cogeo.py#L271

But it has the inconvenience of automatically wrapping dataset with internal GCPS, meaning that input dataset with GCPS will result in output dataset wrapped using the GCPS.