More than one symbol for one point
Blammo
bob.basques at CI.STPAUL.MN.US
Wed Dec 15 00:11:18 PST 2004
Holger Floerke wrote:
>Is it possible to draw more than one symbol (dependent on some data fields)
>for one point of a point layer? For example drawing cities with a circle,
>but if the city has an airport (data value "[airport]=1"), then draw an
>additional airport symbol near the city without having another airport layer.
>
>Thanks in advance,
>
>HolgeR
>
>
>
You would need to adjust the symbol definitions to move the symbols out
of the way of each other. These examples just stack two different
symbols on top of one another.
This might help get you started (i don't believe it can be used with
more than two symbols though)
bobb
------------------------:
in the MAPFILE:
LAYER
NAME 'monuments-cogo'
DATA
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/COGO/Monuments-cogo'
GROUP 'monuments'
STATUS DEFAULT
TYPE POINT
LABELITEM 'OLD'
CLASS
OUTLINECOLOR 0 0 0
COLOR 255 200 200
SIZE 10
SYMBOL 'square'
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYCOLOR 0 0 0
OVERLAYSIZE 5
OVERLAYSYMBOL 'circle'
END
##HEADER '../../imagemap/monuments_header.html'
TEMPLATE
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/COGO/monuments-cogo_record.html'
FOOTER
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/COGO/monuments-cogo_footer.html'
END
LAYER
NAME 'monuments-nocogo'
DATA
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/NOCOGO/Monuments-nocogo'
GROUP 'monuments'
STATUS DEFAULT
TYPE POINT
LABELITEM 'OLD'
CLASS
OUTLINECOLOR 0 0 0
COLOR 200 200 255
SIZE 10
SYMBOL 'square'
OVERLAYOUTLINECOLOR 0 0 0
OVERLAYCOLOR 0 0 0
OVERLAYSIZE 10
OVERLAYSYMBOL 'x'
END
HEADER
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/NOCOGO/monuments-nocogo_header.html'
TEMPLATE
'/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/NOCOGO/monuments-nocogo_record.html'
##FOOTER '../../imagemap/monuments_footer.html'
END
In the SYMBOL file:
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
SYMBOL
NAME "x"
TYPE vector
POINTS
0 4
4 0
-99 -99
0 0
4 4
END
END
SYMBOL
NAME 'square'
TYPE vector
FILLED true
POINTS
0 0
0 4
4 4
4 0
0 0
END
END
More information about the MapServer-users
mailing list