[postgis-devel] [PostGIS] #920: CURVEPOLYGON problem when converting to/from text
PostGIS
trac at osgeo.org
Thu Apr 21 09:01:18 PDT 2011
#920: CURVEPOLYGON problem when converting to/from text
---------------------+------------------------------------------------------
Reporter: debe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 1.5.3
Component: postgis | Version: 1.5.X
Keywords: |
---------------------+------------------------------------------------------
Hi,
i have a problem with this geometry:
{{{
CURVEPOLYGON(COMPOUNDCURVE((724190.669216162
120573.733407055),CIRCULARSTRING(724190.669216162
120573.733407055,724190.12214281 120573.55
7014059,724189.632 120573.341),(724189.632 120573.341,724189.874
120573.455,724190.122 120573.557,724190.375 120573.647,724190.631 120573.
724,724190.669216162 120573.733407055)))
}}}
that is generated from (that polygon is a result of a st_intersection with
others geometries):
{{{
st_linetocurve(st_geomfromtext('POLYGON((724190.669216162
120573.733407055,724190.631098529 120573.723945555,724190.3745717
120573.646726888,724190.12214281 120573.557014059,724189.874419981
120573.455023195,724189.632 120573.341,724189.874 120573.455,724190.122
120573.557,724190.375 120573.647,724190.631 120573.724,724190.669216162
120573.733407055))'))
}}}
if i convert it to text and i convert it back to geometry
{{{
st_geomfromtext(st_astext(geometry))
}}}
i receive this error:
{{{
ERROR: geometry requires more points
HINT: "...E((724190.669216162 120573.733407055)" <-- parse error at
position 62 within geometry
}}}
is this a bug or i'm doing something wrong?
{{{
postgis_full_version
-----------------------------------------------------------------------------------------------------
POSTGIS="1.5.2" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.6.1, 21 August 2008"
LIBXML="2.6.32" USE_STATS
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/920>
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