[postgis-devel] Issue 86 in postgis: ST_LineToCurve produces invalid curves
codesite-noreply at google.com
codesite-noreply at google.com
Mon Dec 15 23:12:06 PST 2008
Status: Accepted
Owner: mrk.leslie
New issue 86 by mrk.leslie: ST_LineToCurve produces invalid curves
http://code.google.com/p/postgis/issues/detail?id=86
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.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
More information about the postgis-devel
mailing list