jiayuasu opened a new issue, #3175:
URL: https://github.com/apache/sedona/issues/3175

   ## What's missing
   
   `ST_Intersection` has no geography overload. 
`docs/api/sql/geography/Geography-Functions/`
   currently documents ST_Area, ST_AsEWKT, ST_AsText, ST_Buffer, ST_Centroid, 
ST_Contains,
   ST_DWithin, ST_Distance, ST_Envelope, ST_Equals, ST_GeometryType, 
ST_Intersects, ST_Length,
   ST_NPoints, ST_NumGeometries and ST_Within — the overlay operations are 
absent.
   
   ```sql
   -- wanted
   SELECT ST_Area(ST_Intersection(geogA, geogB));   -- spherical overlay, area 
in m^2
   ```
   
   ## Why
   
   This is the one function blocking the geography form of SpatialBench Q9 
(building conflation /
   IoU) on Sedona. The query is a polygon self-join that computes
   `ST_Area(ST_Intersection(a, b)) / (area_a + area_b - overlap)`; with 
geography inputs the
   areas come back in m² and the IoU is directly interpretable, whereas the 
planar form yields
   square degrees.
   
   ## Reference
   
   SedonaDB already implements it — `ST_Intersection(geography, geography) -> 
geography` — so
   there is a reference for the expected semantics.
   
   Part of https://github.com/apache/sedona/issues/2830.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to