Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the difference between the GeometryService areasAndLengths method and the Measurement widget to make a caculation in the ArcGIS JS API? Accuracy?

share|improve this question
up vote 1 down vote accepted

I don't think these are comparable.

The Areas and Lengths Operation on a Geometry Service, is a web service that can be used to get the Areas and Lengths of an Arbitrary set of polygons in any arbitrary spatial references.

The Measurement widget is a dojo widget that is used in the ESRI JSAPI to draw shapes on the map, and get the area/length etc. If the Map is not in Web Mercator or geographic projection, it will need a geometry service to project or simplify geometries.

share|improve this answer
Thx, in my opinion, both of them could get the measurement work down in a web application, so in this situation, they have no different, is it right? – Zhang Yang Aug 7 '13 at 13:17
@ZhangYang:It's like saying that a super-market and a farm is basically the same, since you get vegetables and meat at both places. The Measurement Widget is useful in certain situations while the Geometry service is much more flexible and can be used for many different things. – Devdatta Tengshe Aug 7 '13 at 14:58
All right, great example, Thank u very much. The Measurement is suit for the certain polygon, and Geometry Service is more flexible, I think I have had a concept about this. – Zhang Yang Aug 8 '13 at 1:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.