[Mapserver-users] Label mindistance not working for me
Steve Lime
steve.lime at dnr.state.mn.us
Mon Jan 26 10:20:25 PST 2004
The criteria is text comparison of labels within the same layer and same
class. Presumably you could have a interstate 35 and a state highway 35
that should be allowed to be close.
Why are you setting LABELCACHE ON and POSTLABELCACHE TRUE?
Steve
>>> "Matthew Haines" <mhaines94108 at hotmail.com> 1/25/2004 8:15:31 PM
>>>
I'm having trouble with label mindistance. I have set it, but my
labels
still collide. What exactly is the equality comparison used? Is it a
text
comparison of the label names? My data file has a different line
segment
for each block on the street. If the map is zoomed to show eight
blocks, I
get eight labels. A few extra labels is okay, but not when they are
all on
top of each other.
Adding or removing BUFFER, MINDISTANCE, and MINFEATURESIZE all don't
seem to
change the output map, which has identical labels stacked to the point
of
illegibility.
Matthew
LAYER
NAME "bk_streets"
CONNECTIONTYPE OGR
CONNECTION "data/streets/lion03C/bklion.tab"
MAXSCALE 6000
STATUS DEFAULT
FORCE TRUE
TYPE LINE
LABELITEM 'Street'
LABELCACHE ON
POSTLABELCACHE TRUE
CLASS
COLOR 255 255 255
LABEL
ANGLE AUTO
COLOR 31 231 31
BUFFER 100
FORCE FALSE
MINFEATURESIZE AUTO
SIZE 12
TYPE TRUETYPE
FONT arial
MINDISTANCE 50
END
END
END
_________________________________________________________________
Rethink your business approach for the new year with the helpful tips
here.
http://special.msn.com/bcentral/prep04.armx
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list