[PROJ] intersects function

Martin Desruisseaux martin.desruisseaux at geomatys.com
Sat Jun 8 13:09:07 PDT 2024


Hello Javier

Even can answer better, but I suspect that the code applies the 
convention saying that W > E means that the envelope is crossing the 
anti-meridian. There is a picture there:

    https://sis.apache.org/apidocs/org.apache.sis.referencing/org/apache/sis/geometry/GeneralEnvelope.html#crossing-the-anti-meridian-of-a-geographic-crs-heading

With such convention, the tests for contains and intersections become 
more complicated. There is a picture for contains, but the situation is 
similar for intersection:

    https://sis.apache.org/apidocs/org.apache.sis.referencing/org/apache/sis/geometry/AbstractEnvelope.html#contains(org.opengis.geometry.Envelope)

Martin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20240608/f9d9cdb0/attachment.htm>


More information about the PROJ mailing list