ST_INTERSECTION returns wrong result on two overlapping linestrings in maria-5.3-gis

Bug #802376 reported by Philip Stoev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
Undecided
Alexey Botchkov

Bug Description

Calling ST_INTERSECTION() on two partially overlapping linestrings returns a single POINT , rather than the list of overlapping segments.

For example:

SELECT AsText( ST_INTERSECTION(
  LinestringFromText('LINESTRING( 3 5, 2 5, 2 4, 3 4, 3 5 ) ') ,
  LinestringFromText('LINESTRING( 3 5, 2 4, 2 5, 3 5 ) ')
));

Note that the two linestrings share (3 5 , 2 5) and (2 5 , 2 4) and yet ST_INTERSECTION returns only POINT(2 5). Postgis returns MULTILINESTRING((3 5,2 5),(2 5,2 4))

Changed in maria:
milestone: none → 5.3
assignee: nobody → Alexey Botchkov (holyfoot)
Changed in maria:
milestone: 5.3 → none
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.