Profile Picture

Map simplification

Posted By Kevin Harrison 14 Years Ago
Author
Message
Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

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





Similar Topics


Reading This Topic