Measuring Line Lengths and Polygon Areas and Boundaries

Topics: Windows Forms
Oct 24, 2011 at 7:20 PM

Hi,

Just starting using the control this week and I'm totally blown away by it - stunning piece of work! 

A couple of questions...

Is it possible to measure line lengths and display it (ideally a measuring tool where you could create a line with multiple points then on hitting enter display the total length in a message box then clear the line?

Is it possible to measure both the area and boundary length of a polygon. Ideally I let the user draw out a polygon then on closing the polygon (end point hitting the start point) the 2 measurements are displayed then the polygon removed?

Forgive my ignorance if this functionality is already present, but if it is I haven't stumbled on it yet.

Many Thanks

Charlotte.

Coordinator
Oct 25, 2011 at 7:01 AM

measuring tool isn't available now, so you have to construct it yourself ;/

Oct 25, 2011 at 3:39 PM

radioman, many thanks for your quick response. Any ideas on how to get the area of a polygon - I haven't a clue on where to start with this :(

Thanks

Oct 25, 2011 at 4:00 PM

 

http://www.mathsisfun.com/geometry/area-irregular-polygons.html