Ticket #86 (closed task: fixed)
ST_LineToCurve produces invalid curves
| Reported by: | mleslie | Owned by: | mleslie |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 1.4.0 |
| Component: | postgis | Version: | 1.4 |
| Keywords: | Cc: |
Description
Courtesy of Regina:
SELECT astext(ST_LineToCurve(ST_Buffer(ST_SetSRID(ST_Point(i,j),4326), j)))
As the_geom FROM generate_series(-10,50,10) As i CROSS JOIN
generate_series(40,70, 20) As j limit 1;
Produces a curved geometry of type CURVEPOLYGON that can be stored and operated on as you would expect, but when passing through the unparser (eg. astext()), it fails the consistency check on the curve producing:
ERROR: geometry must have an odd number of points
The check is not in error, the conversion is should ensure a parsable geometry is produced.
Change History
Note: See
TracTickets for help on using
tickets.
