Ticket #1772 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

ST_Split returning NaN coordinates

Reported by: strk Owned by: pramsey
Priority: critical Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

strk=# select ST_AsText(ST_Split( 'LINESTRING(0 1, 0 1, 0 1)', 'POINT(0 1)' ));
                           st_astext                           
---------------------------------------------------------------
 GEOMETRYCOLLECTION(LINESTRING(0 1),LINESTRING(-nan -nan,0 1))
(1 row)

The correct answer may be this one:

strk=# select ST_AsText(ST_Split( 'LINESTRING(0 1, 0 1)', 'POINT(0 1)' ));
                st_astext                
-----------------------------------------
 GEOMETRYCOLLECTION(LINESTRING(0 1,0 1))
(1 row)

Change History

Changed 14 months ago by strk

See #1771 for origin

Changed 14 months ago by strk

Corollary:

select ST_Line_Locate_Point( 'LINESTRING(0 1, 0 1, 0 1)', 'POINT(0 1)');
 NaN

Changed 14 months ago by strk

Fixed by r9630 -- to be backported to 1.5 (the ST_Line_Locate_Point part)

Changed 14 months ago by strk

  • status changed from new to closed
  • resolution set to fixed

r9631 is the backport to 1.5

Note: See TracTickets for help on using tickets.