[postgis-devel] [PostGIS] #667: ST_AsEWKT curvepolygon crasher
PostGIS
trac at osgeo.org
Fri Nov 26 05:59:14 PST 2010
#667: ST_AsEWKT curvepolygon crasher
---------------------+------------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: 1.5.X
Keywords: |
---------------------+------------------------------------------------------
This is a long standing bug, but not sure how easy it is to go back and
fix for 1.5. I didn't notice this since I had excluded curved geometries
from my garden tests and hadn't put them back. I don't think its an issue
with all curved polygons though
-- This crashes --
{{{
SELECT ST_AsEWKT(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
ORDER BY i, j, i*j;
}}}
-- this works fine
{{{
SELECT 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
ORDER BY i, j, i*j;
}}}
-- this one works fine too -
{{{
SELECT ST_AsEWKT(ST_GeomFromEWKT('SRID=4326;CURVEPOLYGON(CIRCULARSTRING(0
0, 4 0, 4 4, 0 4, 0 0),(1 1, 3 3, 3 1, 1 1))'));
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/667>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list