Found this in a Mapserver list message. Authored by Thomas Bonfort, so ought to be accurate.
To summarize, here is the way to *completely* avoid truncated labels
and edge artifacts:
* use a 10 pixel metabuffer in your tilecache config (the number of
metatiles is irrelevant, but as Chris points out, there'll be more
labels included if you use a 3x3 (or more) metatiling scheme than a
1x1 one :
metaTile=true
metaSize=3,3
metaBuffer=10
* set a 10 pixel edge buffer in mapserver (so no labels are rendered
in the 10 pixels on the edges of the image) :
WEB
METADATA
labelcache_map_edge_buffer "-10"
END
END
* use PARTIALS FALSE in all your label blocks
No comments:
Post a Comment