Multiple labels along a line
berend.veldkamp at ARIS.NL
Tue Aug 17 10:33:45 EDT 2004
The line segments are short enough, so one label per segment wil suffice.
When I set MINDISTANCE to 0, PARTIALS and FORCE to true, I still get
only one label per line. Here's the relevant part of my mapfile:
COLOR 255 0 0
OUTLINECOLOR 255 255 204
David Fawcett wrote:
> I think the answer may be somewhat data dependent. How long are your
> line segments?
> There are two possible cases.
> 1. You have multiple arcs in a line and currently only the longest one
> is being labeled. If this is the case, try setting MINDISTANCE in the
> label object. This sets the minimum distance in pixels between labels.
> I am not sure what the default is, so I don't know if a very small
> number will give you more labels. You may also want to set PARTIALS and
> FORCE in case the labels aren't being drawn due to collisions or
> trailing off of image.
> 2. You have a long segment and you want to place multiple labels on the
> same segment. I don't believe that Mapserver is capable of doing that.
> Of course, I may be wrong. If the data is pretty static and you really
> want this functionality, you could preprocess your data and chop it into
> smaller segments.
> David J. Fawcett
> MN Office of Environmental Assistance
Berend Veldkamp - ARIS
More information about the mapserver-users