Opened 6 years ago

Closed 6 years ago

Last modified 6 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 6 years ago.
Patch to make ST_CurveToLine always segmentize regardless of whether geometry contains an arc

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by dfuhry

Attachment: patch_curvetoline_v1.diff added

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

comment:1 Changed 6 years ago by pramsey

Resolution: fixed
Status: newclosed

Fixed in trunk at r10671 and 2.0 at r10672

comment:2 Changed 6 years ago by robe

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