I have specific problem with MySQL ST_intersect function. MySQL ST_intersect doesn't work correctly in our case.
I'm asking for intersects between polygon and line like in example bellow:
SELECT ST_intersects( GeomFromText( 'POLYGON((0 10,10 10,10 0,0 0.1,0 10))'), GeomFromText( 'LINESTRING(5 2, 11 -4)' ) )
This will return true but (after change on 4th point in polygon):
SELECT ST_intersects( GeomFromText( 'POLYGON((0 10,10 10,10 0,0 0,0 10))'), GeomFromText( 'LINESTRING(5 2, 11 -4)' ) )
This will return false.
How is it possible in this very simple geometry?
Because when I'm asking if the same line intersects polygon like this: 0 0,10 0,10 -10,0 -10,0 0 everything is correct and result is true.
Thanks for any ideas.