Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Get affine transformation from GeoTIFF (#8)
* ➕ Add geo Geospatial primitives and algorithms! * ✨ Get affine transformation from GeoTIFF Implement transform method in CogReader struct to get affine transformation matrix from GeoTIFF via ModelPixelScaleTag and ModelTiepointTag. Added a unit test to check that the x/y pixel size and top left origin pixel coordinates is correct. * 📝 Document transform method's internal properties Explicitly mentioning the internal fields of the AffineTransform struct, specifically the pixel resolution, rotation and origin, and included a reference to the GeoTIFF standard. Also renamed origin_x/origin_y to x_origin/y_origin. * 🚧 Raise unimplemented when getting non-zero rotation values Supposed to be parsed from the ModelTransformationTag, but haven't found a sample GeoTIFF online with non-zero rotation to implement this properly with a unit test, so marking as unimplemented for now.
- Loading branch information