Wrong result with ST_INTERSECTS and LINESTRINGs

Bug #857087 reported by Philip Stoev on 2011-09-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Alexey Botchkov

Bug Description

This query:

SELECT ST_INTERSECTS( GeomFromText('MULTILINESTRING( ( 4030 3045 , 3149 2461 , 3004 3831 , 3775 2976 ) )') , GeomFromText('LINESTRING(3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29,3039.07 3175.05,3039.07 3175.05,3058.41 3187.91,3081.52 3153.19,3042.99 3127.57,3019.89 3162.29)') );

returns TRUE with PostGIS and False with MariaDB. Visual examination with a GUI editor shows that intersection does indeed exist.

The shape of the second linestring seems to be important. This linestring was taken from an actual openstreetmap , so I assume it is realistic.

ST_INTERSECTION() also reports a non-empty intersection, so ST_INTERSECTS must be TRUE.

Changed in maria:
assignee: nobody → Alexey Botchkov (holyfoot)
Changed in maria:
status: New → Fix Committed
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers