-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Talking to @asinghvi17, for SpeedyWeather and Oceananigans (@simone-silvestri) we need (towards things like conservative interpolation between two grids on the sphere) we will need
GeometryOps.area(GeometryOps.intersection(GeometryOps.GEOS(), polygon1, polygon2))
to be as fast as possible as polygon1 and 2 will each come from large vectors of polygons (10k to 1mio) and all combinations need to be computed. See also SpeedyWeather/SpeedyWeather.jl#648. Our polygons are all simple and convex, having 4 vertices each, all much smaller than the radius of the sphere. However, we basically never need the actual intersection polygon materialized, we just need its area.
This is an issue to discuss how to get there, maybe an area_intersection(poly1, poly2)
function? Or maybe other shortcuts that we could take.
rafaqz
Metadata
Metadata
Assignees
Labels
No labels