[mapserver-users] mapserver POSITION question
Raivo Alla
snaperski at gmail.com
Mon Jun 15 05:55:05 PDT 2009
Hi again!
I have a problem that will soon crack my head.
As it could be seen on the picture
(http://picasaweb.google.com/snaperski/Ort#5347526051315751666),
street labels are strangely positioned in different ways.
I want labels only when they have enough space to fit in
(MINFEATURESIZE AUTO) and I want them
centered. As it appears, sometimes they are aligned left, sometimes
right, only lucky ones at the center.
Those red boxes are to visualize vertex points.
How could I accomplish that, I wonder?
Mapfile lines:
LAYER
NAME tanavad_10T
GROUP HYBRID
METADATA
"wms_title" "tanavad_10T"
"wms_srs" "EPSG:3301"
"wms_extent" "355000 6360000 754000 6660000"
END
STATUS default
TYPE line
DATA "hyb_teed_j"#<--- EESTITOPO-sse, st Oraclesse tuletiskiht?
OPACITY 50
FILTERITEM "TYYP"
FILTER (([TYYP] eq 50 OR [TYYP] eq 99) AND [tahtsus] ne 10 AND
[tahtsus] ne 20 )
LABELITEM "KARTO_NIMI"
CLASS
MAXSCALE 20000#15000
MINSCALE 2667#2000
STYLE
COLOR 255 255 255
SIZE 2
SYMBOL "stroke_style_1_0"
END
style#<---this section visualizes vertexes
geomtransform "start"
symbol "mnt_kast"
color 255 0 0
size 6
end
LABEL
TYPE truetype
FONT "arial"
COLOR 240 240 240
OUTLINECOLOR 52 52 52
SIZE 9
priority 6
force false
MINDISTANCE 250
MINFEATURESIZE auto
ANGLE auto
POSITION cc
BUFFER 2
END
END
END
Sincerely,
Raivo Alla
More information about the MapServer-users
mailing list