[postgis-devel] [PostGIS] #1345: ST_StartPoint, ST_EndPoint regress failure

PostGIS trac at osgeo.org
Fri Dec 2 07:30:15 PST 2011


#1345: ST_StartPoint, ST_EndPoint regress failure
----------------------+-----------------------------------------------------
 Reporter:  robe      |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  critical  |   Milestone:  PostGIS 2.0.0
Component:  postgis   |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------
 I just noticed (by accident of course when testing my cross street logic)
 and I forgot my data is multilinestrings (though most are just single
 linestrings inside a multi wrapper).

 This works on my 1.5 install:

 {{{
 SELECT ST_AsText(ST_StartPoint('MULTILINESTRING((1 2, 3 4))'::geometry) );

 --returns --
 POINT(1 2)
 }}}

 This works on my 2.0 install:

 {{{
 SELECT ST_AsText(ST_StartPoint('MULTILINESTRING((1 2, 3 4))'::geometry) );

 --returns --
 NULL
 }}}


 If this is an intentional change, it needs to be documented since it
 stands to break a lot of applications.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1345>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list