[mapserver-users] Re: Display a map in lower detail
reh2 at prodigy.net
Sun Aug 31 13:05:04 EDT 2008
You're basically describing "generalization" here. I don't think mapscript has facilities for this, but you may be able to perform your own generalization on your shape objects. Try a google on "Douglas-Peucker algorithm" and see what you find. In some cases I think people simplify their polygons at various scales in advance and store them, then use the mapserver CLASS and MINSCALE/MAXSCALE in the mapfile to select which polygons to output.
Is it possible in Mapscript to display a map in lower "detail"? For example, I have a shape file whose boundary polygons are so detailed, that when viewed from a low zoom factor, the edges are not smooth because of lots of points in the boundaries. My objective is to display them with less detail (i.e. less points) so that the edges will be smooth, without effectively ruining the shape of the map.
If it is not built-in in Mapscript, do you know of a utility/algorithm that can do the above conversion?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users