[postgis-devel] [PostGIS] #1304: ST_Segmentize returns invalid LINESTRING for zero-length input

PostGIS trac at osgeo.org
Wed Nov 16 16:10:45 PST 2011


#1304: ST_Segmentize returns invalid LINESTRING for zero-length input
---------------------------+------------------------------------------------
 Reporter:  realityexists  |       Owner:  pramsey      
     Type:  defect         |      Status:  new          
 Priority:  medium         |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:                 |  
---------------------------+------------------------------------------------
 PostGIS 2.0.0 as of 2011-11-08

 {{{
 SELECT ST_AsText(ST_Segmentize(ST_GeomFromText('LINESTRING(1 2,1 2)'),
 100))
 }}}

 returns "LINESTRING(1 2)", which is invalid - parsing it with
 ST_GeomFromText() fails. I would expect it to return the input value
 ("LINESTRING(1 2,1 2)").

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1304>
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