addFeatures or updateFeatures geometry creation issue

64
2
03-25-2020 02:05 PM
Highlighted
Occasional Contributor

When updating or creating a feature with JSON thenumber entered for "x" and "y" changes from dec degrees (eg 143.8689302 -35.76106763) to some other format (0.001292349 -0.000321247 in this case).  Why does this happen? When I use .CSV file with the same numbers it works correctly.

JSON:

{"geometry":{"x"143.8689302:,"y":-35.76106763,"spatialReference":{"wkid":102100}},"attributes":{"ObjectId":objectId,"Status":"construction_complete","ASSET_ID":assetID,}}

Reply
0 Kudos
2 Replies
Highlighted
Occasional Contributor III

Hey Matt Creaney‌,

What is the spatial reference of the web service you are using?

Thanks,

Ben


If this answer was helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.

Highlighted
Occasional Contributor

Hi Ben Turrell

Thanks for your reply.  The spatial reference shown on the Service URL is 102100 

Reply
0 Kudos