[geos-devel] how to know if two linestrings "really" cross each other

Jasmin FORMONT JFORMONT at siradel.com
Wed May 30 03:40:19 PDT 2012

Hi everyone

I can't find a way to tell if two linestrings "really" cross each other.

For instance if I have this linestring :
Line1 : LINESTRING(0 0, 1 1, 2 0)

How can I differentiate the relation of line 1 with one of the following :
Line2 : LINESTRING(0 2, 1 1, 2 2)    -> no "real" cross, just a contact point
Line3 : LINESTRING(0 2, 1 1, 1 0)    -> lines "really" cross each other

I can't find a good combination of crosses, touches, etc... to differentiate these cases.

Thanks in advance


This document is considered to be confidential and proprietary information of SIRADEL. Information enclosed may not be revealed to any other parties without the express written consent of SIRADEL. If you do not agree to these terms, please notify SIRADEL and destroy this document.
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20120530/6ea27f28/attachment.html>

More information about the geos-devel mailing list