rasterio / affine

Affine transformation matrices
BSD 3-Clause "New" or "Revised" License
156 stars 28 forks source link

Add `from_bounds` and `from_origin` class methods #55

Closed geospatial-jeff closed 3 years ago

geospatial-jeff commented 4 years ago

The rasterio.transform module has several methods for generating an instance of affine.Affine. I don't think these methods are specific to rasterio, and given that they just call Affine class methods, I think it would be useful to define these here.

If you think this is a good idea I'm happy to write up a PR!

sgillies commented 3 years ago

@geospatial-jeff thanks for the suggestion. I'm going to decline your offer because I want to keep this module free of GIS concepts like pixels and raster data georeferencing.