rasterio / affine

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

Batch numpy coordinate transforms #69

Closed Multihuntr closed 2 years ago

Multihuntr commented 2 years ago

Resolves #68

Multiplying Affine with a numpy array or torch tensor now applies the transform to multiple coordinates in either numpy.ndarray or torch.tensor format (assuming coordinates are shaped [..., 2]).

Doesn't make numpy or torch a dependency.

sgillies commented 2 years ago

@Multihuntr I appreciate the contribution, but feel this is not right for the project. The affine project is pretty much complete and we're not looking to change its abstractions or add new features. I think this library will be easier to comprehend if it doesn't cover batch transforms and we also won't need to add new tests or documentation for the new cases. I hope you understand.