Skip to content

Modify extent of query #472

Answered by LucaMarconato
tawaunl asked this question in Q&A
Feb 27, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

I have some details to add.

I have now added a to_circles() API that makes it easier to convert labels, multiscale labels, polygons and multipolygons to circles. This would facilitate writing the queries if you use the circles approach above.

In alternative, I made a little demo with the code hidden in this commit https://github.com/scverse/spatialdata-notebooks/blob/9ea096ff0e047321cbc83ae24b8f571e1956b8ba/notebooks/examples/napari_rois.ipynb (see the end of the notebook), where I compute fraction of overlap between regions being queried by polygon ROIs. The example is a bit technical; it could be simplified by using directly geopandas API instead of aggregate, while continuing using spa…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tawaunl
Comment options

Answer selected by LucaMarconato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants