Hi,
I am getting below error while running the geometry service to calculate distance btw two geometries.
Unable to complete operation.The operation was attempted on an empty geometry.
http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer/distance?sr=4326&geometry1=-106.61%2C+35.1107&geometry2=-108.61%2C+35.1107&geodesic=true&distanceUnit=MILE&f=html
Any help would be greatly appreciated.
Thanks
Chitra
Here is the documentation for the distance operation.
https://developers.arcgis.com/rest/services-reference/enterprise/distance.htm
You need to pass the geometries as shown.
{ "geometryType" : "esriGeometryPoint", "geometry" : { "x" : -95.23, "y" : 31.71; } }
There's an example URL at the bottom of the page for reference.
that works. Thank you very much for the link to the documentation.
-Chitra
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.