The help file gives the following simplification example:
NPolygonShape polygonShape = (NPolygonShape)shape;
NPointFList simplifiedPointList = NPointFList.Simplify(polygonShape.Points, 3);
polygonShape.Points = simplifiedPointList.ToArray();
Can I use this to simplify an existing shape file as I read it in? I tried putting this code in the OnPolygonCreated and OnMultiPolygonCreated callbacks, but I suspect it is too late by then. Additionally how do I decide what to use as the tolerance parameter? 3 is no good for my map because it is far too large. Is there a simple algorithm I can apply to determine the best tolerance parameter?
Thanks
Kevin