Hello,
I'm trying to generate Geometry from WKT representation. I'm not having issues with simple types (eg LINE, POLYLINE, POLYGON...) but I get an exception when trying to convert a CURVEPOLYGON.
string wkt = "CURVEPOLYGON(
CIRCULARSTRING(2626001.305 1230573.515,2626001.74595277 1230572.58234891,2626001.569 1230571.566,2626000.28420587 1230570.66202792,...));
var myGeom = GeometryEngine.Instance.ImportFromWKT(WKTImportFlags.wktImportDefaults, wkt, spatialRef);
I tried to change the WKTImportFlag to wktImportNotTrusted, but without success.
Is there any workaround to handle this situation?
Thanks
Solved! Go to Solution.
Hi Fred,
Esri doesn't support curves in WKT. Curves are not in the OGC spec on WKT, but from what I can tell some databases have extended the spec to include them.
We do support curves in JSON which could be a workaround for you.
Annette
Hi Fred,
Esri doesn't support curves in WKT. Curves are not in the OGC spec on WKT, but from what I can tell some databases have extended the spec to include them.
We do support curves in JSON which could be a workaround for you.
Annette
Thanks Annette,
I'll have a look a this.
Fred