Hi Scott, your current polygon is described using a geographic coordinate system i.e Lon Lat. To get a useful area you need to transform it into a planar coordinate system and then the value of the polygon.Area property will depend on the unit of the chosen coordinate system. Depending on the coordinate system you transform to, you will get variations in the area returned.
HTH jd
--
You received this message because you are subscribed to the Google Groups "NetTopologySuite" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/nettopologysuite/-/6bQjSqBxm-MJ.
To post to this group, send email to
nettopol...@googlegroups.com.
To unsubscribe from this group, send email to
nettopologysui...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/nettopologysuite?hl=en.
string coordinates = "-79.525542519049552,43.691278124243432 -79.525382520578987,43.691281097414787 -79.525228855617627,43.69124858593392 -79.525096151437353,43.691183664769774 -79.52472799258571,43.690927163079735 -79.525379447437814,43.690771996666641 -79.525602330675355,43.691267524226838 -79.525542519049552,43.691278124243432";
var polygon = new LonLatPolygon(coordinates);
double areaInKm = polygon.AreaInKm;
To post to this group, send email to nettopo...@googlegroups.com.
To unsubscribe from this group, send email to nettopologysu...@googlegroups.com.
If all you want to do is determine true area, transform to a local Transverse Mercator projection, using the centroid of the geometry as the origin of the projection. We run into this frequently... discrepancies in area for a field located near the border of a UTM zone. In agricultural standards efforts, the trend is to always use local transforms for measuring distance, area and parallel lines. When working with a piece of equipment in a field, the equipment is a fixed width, and will produce the same number of paths for a given field, but if you don’t you a local projection, you will mathematically get a different number of paths, depending upon the projection you use.
______________________Ted Macy
MapShots, Inc.
Web: www.mapshots.com