Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2001 closed defect (fixed)

ST_CurveToLine has no effect if the geometry doesn't actually contain an arc

Reported by: xificurk Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.2
Component: postgis Version: 2.0.x
Keywords: history Cc:

Description

ST_CurveToLine leaves geometry unchanged, if it doesn't actually contain an arc. I think it should always output linear geometry type.

⇒ SELECT ST_AsText(ST_CurveToLine(ST_GeomFromText('CURVEPOLYGON((0 0, 0 1, 1 1, 0 0))'), 2));

st_astext


CURVEPOLYGON((0 0,0 1,1 1,0 0))

Attachments (1)

patch_curvetoline_v1.diff (460 bytes ) - added by dfuhry 12 years ago.
Patch to make ST_CurveToLine always segmentize regardless of whether geometry contains an arc

Download all attachments as: .zip

Change History (3)

by dfuhry, 12 years ago

Attachment: patch_curvetoline_v1.diff added

Patch to make ST_CurveToLine always segmentize regardless of whether geometry contains an arc

comment:1 by pramsey, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk at r10671 and 2.0 at r10672

comment:2 by robe, 12 years ago

Keywords: history added
Note: See TracTickets for help on using tickets.