<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I'm trying to draw a point layer, with each point represented in two
colours (for example a square split in two with one half red and one
half green). <br>
I can create the symbols and apply the data but either the squares
are the incorrect shape, or they overlap. The closest I got was with
the following CLASS definition, but then it appeared the colours
were shown on the wrong side of the square. <br>
Images and further details at
<a class="moz-txt-link-freetext" href="http://gis.stackexchange.com/questions/35283/mapserver-symbol-with-two-colours">http://gis.stackexchange.com/questions/35283/mapserver-symbol-with-two-colours</a><br>
Symbol definitions:<br>
<pre class="lang-html prettyprint"><code><span class="pln">SYMBOL
NAME 'SQUARE_L'
TYPE vector
FILLED true
POINTS
0 0
0 1
0.5 1
0.5 0
0 0
END
END
SYMBOL
NAME 'SQUARE_R'
TYPE vector
FILLED true
POINTS
0.5 0
1 0
1 1
0.5 1
0.5 0
END
END
# CLASS definition
I'd like to symbolise a point dataset with a square (or circle) using two colours. This is useful for displaying values collected on both sides of a road (for example).
split symbols
I created two symbols, a left side and right side of the square as shown below:
SYMBOL
NAME 'SQUARE_L'
TYPE vector
FILLED true
POINTS
0 0
0 1
0.5 1
0.5 0
0 0
END
END
SYMBOL
NAME 'SQUARE_R'
TYPE vector
FILLED true
POINTS
0.5 0
1 0
1 1
0.5 1
0.5 0
END
END
Then in my LAYER I can create a CLASS using the two different STYLES:
CLASS
STYLE
SYMBOL "SQUARE_L"
COLOR [LEFT_CLR]
SIZE 10
END
STYLE
SYMBOL "SQUARE_R"
COLOR [RIGHT_CLR]
SIZE 10
END
END
</span></code></pre>
Any help appreciated,<br>
<br>
Seth<br>
</body>
</html>