scverse / spatialdata

An open and interoperable data framework for spatial omics data
https://spatialdata.scverse.org/
BSD 3-Clause "New" or "Revised" License
174 stars 34 forks source link

Extract coordinates of shape after transformation #539

Closed EST09 closed 1 month ago

EST09 commented 1 month ago

Hi,

Please could I ask if it's possible to get the coordinates of a geodataframe of shapes after a transformation has been applied to it? At the moment, I can get the affine matrix of the transformation but the polygon coordinates of the shape in both coordinate spaces is the same.

Like in #353 where you get the bounding boxes before and after

Thank you

Best wishes, Emily

EST09 commented 1 month ago

Sorry, I found it almost as soon as I messaged. table = transform(gdf2, affine_he_to_xen, "global")