Problem with collisions in annotations
Steve Lime
Steve.Lime at DNR.STATE.MN.US
Thu Jan 24 13:29:17 PST 2008
What do the label objects look like? It sounds like you need to put
three labels at
the same spot, right (since they same the same linework)?
One idea would be to be use explicit label positions and offsets. For
example, the
shield is CC, one warning always is UR and the other UL. Label offsets
could push
the warning icons far enough away from the shield for readability.
Might help to post an image example.
Steve
>>> Léveillé, James <James.Leveille at MTQ.GOUV.QC.CA> 01/24/08 12:53 PM
>>>
Hi all,
Context : road network.
I have a MapFile with 3 ANNOTATION LAYERS.
The first one is used to display highway shields (symbol) while the two
others are used to display specific warnings (2 different symbols).
Even if they have a different names, all sources (data_a, data_b and
data_c)
are exactly the same (linear).
When a particular road segment has a shield and one (or even 2) warning,
we
often (always ???) have a collision (see example below).
Any way to prevent this, knowing that when a road segment has a shield
and/or a warning (or two warnings), all the symbols HAVE TO BE DISPLAYED
?
LAYER # Highway shield
...
TYPE ANNOTATION
DATA "/data_a"
FORCE TRUE
LABELITEM "NOROUTE"
...
END
LAYER # Warnings 1 - Related to roads that are closed to trucks
...
TYPE ANNOTATION
DATA "/data_b"
FORCE TRUE
...
END
LAYER # Warnings 2 - Related to special warnings due to poor weather
conditions
...
TYPE ANNOTATION
DATA "/data_c"
FORCE TRUE
...
END
______________________________________________________
JAMES LÉVEILLÉ
Service des systèmes de Mission
Direction des technologies de l'information
Ministère des Transports du Québec
5833, boul. Pierre-Bertrand, 2ième étage
Québec (Québec) G2K 1K7
Téléphone: (418) 380-2005 poste 227
Télécopieur: (418) 644-6653
james.leveille at mtq.gouv.qc.ca <mailto:james.leveille at mtq.gouv.qc.ca>
More information about the MapServer-users
mailing list