Skip to content

Conversation

@rafaqz
Copy link
Owner

@rafaqz rafaqz commented Sep 28, 2024

@evetion we discussed this some time and I just remembered it. So here it it.

GeoExtent capability without a special GeoExtent object. We just add Bounds and Cycled objects that give use bounds with an attached crs or the same that also knows how it cycles, for anti-meridian things. Its duplicating the crs field like Rasters, but that has some nice properties for multidimensional extents, and but we can define setcrs for it in GeoInterface to wrap X and Y in Bounds with the crs.

The trick will be actually writing out the predicates for the cycled parts. Like we would interpret reverse order bounds to be crossing the meridean and work in relation to the cycle.

Then it will be knowing where the cycle is at all from the crs. But some other packages will need to deal with that.

GeoInterface.jl can add GI.crs to get the crs of an Extent. We could also generalise the crs field to be metadata and let it accept any keywords.

@asinghvi17
Copy link

asinghvi17 commented Feb 28, 2025

@rafaqz any progress on this? This would actually be great for the spatial indexing stuff...then we can really use spatial indexing on the sphere but with lat/long bboxes. I can see some uses already :D

@rafaqz
Copy link
Owner Author

rafaqz commented Feb 28, 2025

Yeah, just needed some motivation ;)

Maybe next week

@asinghvi17
Copy link

https://github.com/mourner/geoflatbush may be interesting in terms of how you see this...

@rafaqz
Copy link
Owner Author

rafaqz commented Feb 28, 2025

I don't know if just making Extents cyclic will get us there, but it's a start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants