Select to view content in your preferred language

Out of box Measurement Tool Error

795
2
02-24-2014 07:26 AM
VikramS
Frequent Contributor
Hello,

When I am trying to calculate the area using the out of the box Measurement tool . It is failing when the geometry crosses itself like below . Can anyone tell me whats the work around to solve it . If not , then how can I avoid the exception

[ATTACH=CONFIG]31708[/ATTACH]
0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Vikram,

Can you post the code you are using?  I could not reproduce this with the following sample:

http://developers.arcgis.com/javascript/samples/widget_measureproject/
0 Kudos
VikramS
Frequent Contributor
Hi Vikram,

Can you post the code you are using?  I could not reproduce this with the following sample:

http://developers.arcgis.com/javascript/samples/widget_measureproject/



Hello Jake,

I didn't realize that I had to set the Geometry Service .

esri.config.defaults.geometryService = new esri.tasks.GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");

After I set ,I am not getting error . Thanks Jake for pointing out the sample .
0 Kudos