Measure area after DisplayCaptureGeometry Activity
Hi
With 4.6 and 2.6 HTML5, I kick off the DisplayCaptureGeometry Activity and set the types to Polygon and Current Extent. Var "captured_geom" is populated which is of type geometry.

Whats the best way to then measure then Polygon area that the user just drew and is now stored in captured_geom? The user can physically in fact draw a tiny polygon - almost a line - which ideally I want to detect and warn the user.
Thanks
0
-
I use the Areas and Lengths task... you'll need an AGS server for that. There are, I'm sure, other methods, and if anybody has a client-side solution I would like to hear it, but this is the route that I've been taking. 0 -
You can get the width and height with captured_geom.Extent.Width and capured_geom.Extent.Height and do some checks on it. 0 -
Thanks for responses - def keen to keep things client side if possible. I'll see what I can do with width and height but just wanted to check I hadnt missed a built-in trick here.
Cheers0
Please sign in to leave a comment.
Comments
3 comments