Ticket #1304 (closed defect: fixed)

Opened 18 months ago

Last modified 16 months ago

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: trunk
Keywords: Cc:

Description

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

Changed 16 months ago by pramsey

Fixed in trunk at r8971

Changed 16 months ago by pramsey

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.