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.
I have more information on the problem... I tried adding the same curvePaths feature geometry to a different AGOL account (on a different arcgis.com server) and got a different error.
The original feature service URL (generating the error above) was:
http://services7.arcgis.com/ftakGBUdLtMY5w1s/arcgis/rest/services/Primary/FeatureServer
The new feature service URL is:
https://services.arcgis.com/3q45CjmxLAmHgDCJ/ArcGIS/rest/services/Features/FeatureServer
and it generates the json return string:
{ "addResults": [ { "objectId": null, "globalId": null, "success": false, "error": { "code": 1500, "description": "Incorrect geometry type." } } ] }
Maybe services7.arcgis.com and services.arcgis.com are running different versions of ArcGIS Online?