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: [email protected] 
[mailto:[email protected]] On Behalf Of Birgir
Sent: Monday, February 27, 2012 7:47 AM
To: [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to