[mapguide-users] Calculate the area of a polygon

Traian Stanev traian.stanev at autodesk.com
Mon Feb 27 23:58:36 EST 2012


If you already have the points in an array, it's probably simplest to implement the sum of triangle areas given here:

http://en.wikipedia.org/wiki/Polygon#Area_and_centroid

This assumes your points are not in LatLong coordinates, which would require something more complex.

Traian


-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Birgir
Sent: Monday, February 27, 2012 7:47 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Calculate the area of a polygon

Hi,
Is it possible to use the Maestro API to calculate the area of a polygon?
I have an array of x/y points and I would like to get the area of that polygon.

/Birgir




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Calculate-the-area-of-a-polygon-tp4514611p4514611.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list