Select to view content in your preferred language

ImportFromWKT CURVEPOLYGON type

1734
2
Jump to solution
07-07-2021 07:58 AM
FredB
by
Emerging Contributor

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

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

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.

https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geometry#representing-geometries-with-curves...

Annette

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

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.

https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geometry#representing-geometries-with-curves...

Annette

0 Kudos
FredB
by
Emerging Contributor

Thanks Annette, 

I'll have a look a this.

Fred

0 Kudos