[MDEV-2614] LP:857087 - Wrong result with ST_INTERSECTS and LINESTRINGs Created: 2011-09-23  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Philip Stoev (Inactive) Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug857087.xml    

 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.



 Comments   
Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ]

Launchpad bug id: 857087

Generated at Thu Feb 08 06:43:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.