Hello,
I am trying to get the area of a feature within Bing Maps.
//Create Feature based upon Well Known Text you have stored in your database table
Feature plotPolygon = new Feature(dr["property_wkt"].ToString());
//Set the field information for each plot polygon based upon what is stored in the database.
plotPolygon.ColumnValues.Add("id", dr["property_id"].ToString());
plotPolygon.ColumnValues.Add("name", dr["property_name"].ToString());
//AreaBaseShape areaShape = (AreaBaseShape)selectedFeatures[0].GetShape();
//double area = areaShape.GetArea(GeographyUnit.DecimalDegree, AreaUnit.SquareKilometers);
AreaBaseShape abs = (AreaBaseShape)plotPolygon.GetShape();
//Map1.MapUnit
double area = abs.GetArea(GeographyUnit.Meter, AreaUnit.Acres);
plotPolygon.ColumnValues.Add("area", area.ToString());
//Add the plot to the Plots Layer.
propertyLayer.EditTools.Add(plotPolygon);
However the results are way off. My MapUnit is meters because I am using Bing.
Any ideas?