jplavoie

curvePaths and curveRings geometries error in calls to ArcGIS REST addFeatures endpoint

Discussion created by jplavoie on Dec 7, 2016
Latest reply on Dec 15, 2016 by jplavoie

I get an error when calling the addFeatures AGOL REST endpoint with a feature that has a curvePaths or curveRings geometry.


One of the problematic "features" strings I am submitting via POST is...

[{"geometry":{"curvePaths":[[[-109.6460798,31.5253408],[-109.6481104,31.5253541],{"c": [[-109.6482729,31.5253381],[-109.6481923,31.5253509]]},[-109.6485493,31.5252686]]]},"attributes":{"GID":14116}}]


The returned json reads...

{"error":{"code":400,"message":"Cannot perform operation. Invalid operation parameters.","details":["'features' parameter is invalid","The specified geometry is not in the correct format. The given key was not present in the dictionary."]}}


The addFeatures endpoint I'm using is documented here and the geometry json format is document here.


The addFeatures endpoint works well for uploading non-curved geometries (paths and rings), btw.


Could it be that ArcGIS 10.2 is running behind ArcGIS Online so curvePaths and curveRings are not yet supported?

 

Thank you.

Outcomes