Opened 13 years ago
#794 new defect
CurveString/CurvePolygon WKT roundtrip issues
Reported by: | MaksimS | Owned by: | gregboone |
---|---|---|---|
Priority: | major | Milestone: | 3.6.0 |
Component: | FDO API | Version: | 3.6.0 |
Severity: | 3 | Keywords: | |
Cc: | External ID: |
Description
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...
CurveString