Map simplification


Author
Message
Kevin Harrison
Kevin Harrison
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
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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search