I am calling the following code
PolygonShape.Simplify(polygon, GeographyUnit.DecimalDegree, 50.1, DistanceUnit.Meter, SimplificationType.DouglasPeucker)
however I get the following exception:
A first chance exception of type 'System.ArgumentException' occurred in MapSuiteCore.dll
Input Geometry Type Is Not Valid
Parameter name: unit
at ThinkGeo.MapSuite.Core.Conversion.x610393b3685ec97b(GeographyUnit x254e2e3a28873bf5)
at ThinkGeo.MapSuite.Core.AreaBaseShape.Simplify(AreaBaseShape targetShape, GeographyUnit targetShapeUnit, Double tolerance, DistanceUnit toleranceUnit, SimplificationType simplificationType)
My map is set to be in DecimalDegrees. Any help would be appreciated. Thanks
.Ryan.