-
Notifications
You must be signed in to change notification settings - Fork 3
Add support for GeogTOWGS84GeoKey #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/cog.rs
Outdated
| #[tokio::test] | ||
| async fn tmp_towgs84() { | ||
| let folder = "/Users/kyle/github/developmentseed/async-tiff"; | ||
| let path = object_store::path::Path::parse("USGS_13_s14w171.tif").unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to create like a one-pixel version of this file to check into the tests?
Maybe try
gdal_translate input.tif output_1px.tif -srcwin 0 0 1 1
to copy just the upper-left-most pixel of the file.
You'd want to manually check that the desired header still exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not, I'd need to specifically compile GDAL to read and write that part of the header. The wheels on PyPI will drop the TAG during GDAL translate.
I can do that if you think it's necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a test file in e4cecf5 (#131)
This PR fixes the failure related to virtual-zarr/virtual-tiff#52.
I added instructions for downloading the file rather than subsetting and committing the file because gdal drops the problematic tag.
This looks to be a tag that was proposed as an addition to the GeoTIFF standard but never actually added to the spec - https://github.com/OSGeo/gdal/blob/657c5e4a4fb5b1389fd800ea9cc964435ad89a18/frmts/gtiff/libgeotiff/geokeys.inc#L34.
xref https://trac.osgeo.org/geotiff/wiki/TOWGS84GeoKey