Implement transform method in CogReader struct to get affine transformation matrix from GeoTIFF via ModelPixelScaleTag and ModelTiepointTag.
Uses the AffineTransform struct from the geo crate. Note that the fields in the struct (a, b, xoff, c, d, yoff) are not made public, but it might be useful if it was!
TODO:
[x] Initial implementation with basic unit test
[x] Document transform method more
[x] Raise proper errors when tags cannot be parsed (InvalidTag isn't too descriptive, but good enough :crossed_fingers:)
TODO in the future:
[ ] Ensure that non-zero rotation values are parsed properly from ModelTransformationTag
Implement transform method in CogReader struct to get affine transformation matrix from GeoTIFF via ModelPixelScaleTag and ModelTiepointTag.
Uses the
AffineTransform
struct from thegeo
crate. Note that the fields in the struct (a, b, xoff, c, d, yoff) are not made public, but it might be useful if it was!TODO:
transform
method moreInvalidTag
isn't too descriptive, but good enough :crossed_fingers:)TODO in the future:
References: