Opened 13 years ago

Closed 12 years ago

#1304 closed defect (fixed)

ST_Segmentize returns invalid LINESTRING for zero-length input

Reported by: realityexists Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:


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)").

Change History (2)

comment:1 by pramsey, 12 years ago

Fixed in trunk at r8971

comment:2 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.