[fdo-trac] #794: CurveString/CurvePolygon WKT roundtrip issues
FDO
trac_fdo at osgeo.org
Wed Oct 19 09:51:23 EDT 2011
#794: CurveString/CurvePolygon WKT roundtrip issues
-----------------------+----------------------------------------------------
Reporter: MaksimS | Owner: gregboone
Type: defect | Status: new
Priority: major | Milestone: 3.6.0
Component: FDO API | Version: 3.6.0
Severity: 3 | Keywords:
External_id: |
-----------------------+----------------------------------------------------
When a !CurveString is created "manually" (hardcoded) using curve
segments, resulting WKT returned by the {{{CurveString.Text()}}} is:
{{{CURVESTRING XYZ (15 10 0 (LINESTRINGSEGMENT (20 10 0),
CIRCULARARCSEGMENT (22.5 7.5 0, 20 5 0), LINESTRINGSEGMENT (15 5 0),
LINESTRINGSEGMENT (15 10 0)))}}}
Now, when I try to read above WKT back into IGeometry using
{{{FgfGeometryFactory.CreateGeometry()}}} and above WKT string on input:
{{{FgfGeometryFactory.CreateGeometry("CURVESTRING XYZ (15 10 0
(LINESTRINGSEGMENT (20 10 0), CIRCULARARCSEGMENT (22.5 7.5 0, 20 5 0),
LINESTRINGSEGMENT (15 5 0), LINESTRINGSEGMENT (15 10 0)))")}}}
...I keep getting following {{{IGeometry.Text()}}} result:
{{{CURVESTRING XYZ (15 10 0 (LINESTRINGSEGMENT (20 10 0),
CIRCULARARCSEGMENT (22.5 7.5 0, 20 5 0), LINESTRINGSEGMENT (15 5 0, 15 10
0)))}}}
...and on the next rountrip, one coordinate is missing (!)
BTW, !LineString/!Polygon roundtrip tests (similar to above example) pass
just fine...
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/794>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list