How to get the accurate measurement result?

1886
10
04-25-2014 07:02 AM
weiliang
New Contributor II
Hi,

I am working on the measurement widget, and it seems that the out of box 'esri/dijit/Measurement' widget is always based on Web-Mercator projection. This makes the measurement result not as accurate as local projection if I understand correctly. Is there a way to use local projection to do the measurement by using this widget? Or I must build a fresh new widget from scratch by myself if I want to get accurate measurement result?

Thanks,

Wei
0 Kudos
10 Replies
MelitaKennedy
Esri Notable Contributor
Hi Wei,

I don't use the Javascript API, but what about esri.geometry.geodesicUtils?

Melita
0 Kudos
JonathanUihlein
Esri Regular Contributor
Hi,

I am working on the measurement widget, and it seems that the out of box 'esri/dijit/Measurement' widget is always based on Web-Mercator projection. This makes the measurement result not as accurate as local projection if I understand correctly. Is there a way to use local projection to do the measurement by using this widget? Or I must build a fresh new widget from scratch by myself if I want to get accurate measurement result?

Thanks,

Wei


You only really need the conversion algorithm for Web-Mercator to your local projection.

With this, you could modify the widget to fit your needs or convert the values after a measurement event.
0 Kudos
weiliang
New Contributor II
You only really need the conversion algorithm for Web-Mercator to your local projection.

With this, you could modify the widget to fit your needs or convert the values after a measurement event.


Thanks for your reply. But how to use the conversion algorithm? Do you mean convert the graphic layer from Web_Mercator to my local projection. I really get confused here. I think the MeasureWidget only accept WebMercator input.

Wei
0 Kudos
weiliang
New Contributor II
Hi Wei,

I don't use the Javascript API, but what about esri.geometry.geodesicUtils?

Melita


Thanks for your reply. But I don't think using geodesic calculation can get the accurate result.

Wei
0 Kudos
JonathanUihlein
Esri Regular Contributor
Ideally you would convert your resulting measurement data to another spatial reference.

As you said, the Measurement widget works with Web Mercator (102100) and geographic coordinate systems (4326).
0 Kudos
AdrianMarsden
Occasional Contributor III
Sorry, but are you actually saying that the measure widget is inaccurate for all other projections? I hope not as this is now in my production system and being used daily. All my mapping is in BNG 27700
0 Kudos
JohnGravois
Frequent Contributor
adrian,
as per the online documentation, the measurement widget will use geometry service (if provided) to reproject input geometries prior to calculating measurements.

Measuring distances and areas when your map uses the Mercator projection
http://blogs.esri.com/esri/arcgis/2010/03/05/measuring-distances-and-areas-when-your-map-uses-the-me...
0 Kudos
JeffPace
MVP Alum
Just a side not, but my (occasionally not so humble) opinion:

The inherent inaccuracies of browsers, pixels, screen scaling, clicking, etc.. will all add more inaccuracies than the difference between working natively in the local coordinate system and the errors introduced in the web mercator to local conversion.

If you need something more accurate than that, you need a surveyor, not a web application.
0 Kudos
JonathanUihlein
Esri Regular Contributor
Sorry, but are you actually saying that the measure widget is inaccurate for all other projections? I hope not as this is now in my production system and being used daily. All my mapping is in BNG 27700


John and Jeff said it best.

On a related note: there will be some (frequently requested) enhancements to the Measurement Widget in the next major release.
0 Kudos