[MDEV-3406] LP:848939 - Wrong result with ST_INTERSECTION between linestrings and a polygon in 5.3-gis Created: 2011-09-13  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 LPexportBug848939.xml    

 Description   

The following expresion:

SELECT ASTEXT(ST_INTERSECTION( GEOMETRYFROMTEXT('GEOMETRYCOLLECTION(LINESTRING(7 7,5.33333333333333 7),LINESTRING(5.33333333333333 7,0 7,5 8,5.33333333333333 7),LINESTRING(5.33333333333333 7,7 2,7 7),POLYGON((0 5,3 5,3 2,1 2,1 1,3 1,3 0,0 0,0 3,2 3,2 4,0 4,0 5)))'), geomETRYFROMTEXT(' MULTILINESTRING( ( 5 1 , 3 7 , 6 1 , 7 0 ) , ( 1 6 , 8 5 , 7 5 , 5 6 ) )') ));

returns MULTIPOINT(7 5,5.14285714285714 7,5.3 5.9,5.6 5.8,3 7) in mysql

and MULTIPOINT(3 7,5.8 5.6,5.9 5.3,7 5,7 5.14285714285714) in postgis

Visual examination of the geometries in an editor reveals that the postgis result is correct. In the mysql result, the X and Y coordinates appear to be reversed for some points.

revision-id: <email address hidden>
date: 2011-09-13 15:19:55 +0500
build-date: 2011-09-13 15:45:15 +0300
revno: 3000
branch-nick: maria-5.3-gis



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

Launchpad bug id: 848939

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