mortac8

ArcGIS 10- addFeatures- Invalid graphic features

Discussion created by mortac8 on Nov 4, 2010
Latest reply on Nov 5, 2010 by mortac8
Can someone help me construct polygon JSON that will work via the REST API addFeatures test web page?  I can get a point to work but not polyline or polygon.

For example, I can't get the following to work.  Can anyone give me an example of a polygon JSON string that would work given this test page URL?  Thank you!

http://servicesbeta.esri.com/ArcGIS/rest/services/Fire/IncidentAssessment/FeatureServer/1/addFeatures

{
"geometry":{"rings":[[[59.974935376045,42.304312935237],[66.994430083565,49.825200121866],[63.860727089136,41.614898276462],[59.974935376045,42.304312935237]]]
,
"attributes":{"OWNER":"Polygon6"}
}

Outcomes