[mapserver-users] Re: Display a map in lower detail

ROBERT HOLLINGSWORTH 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.

Robert H.
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...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080831/63bcb30a/attachment.html


More information about the mapserver-users mailing list