Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.