<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sander Dee schrieb:
<blockquote cite="midopsepzfsq50wkr56@sanderd.geodan.nl" type="cite">Hi,
<br>
<br>
I need some help creating symbol definitions for some line symbols. I
have
<br>
attached 2 png's. I need to recreate these to mapserver line symbols. I
<br>
hope anyone has an idea how to do this.
<br>
<br>
Thanks in advance,
<br>
Sander Dee<br>
<br>
<hr size="4" width="90%"><br>
<center><img src="cid:part1.09050705.06020507@mapmedia.de"></center>
<p><br>
</p>
<hr size="4" width="90%"><br>
<center><img src="cid:part2.05070204.01080007@mapmedia.de"></center>
</blockquote>
Hey Sander,<br>
try the following:<br>
...<br>
CLASS<br>
STYLE<br>
SYMBOL "cartoline_butt"<br>
SIZE 1<br>
COLOR 0 0 0<br>
ANTIALIAS TRUE<br>
END<br>
STYLE<br>
#SYMBOL "linie-gepunkt2"<br>
SYMBOL "linie-gepunkt2_C"<br>
SIZE 7<br>
COLOR 0 0 0<br>
ANTIALIAS TRUE<br>
OFFSET -4 -99<br>
END<br>
END<br>
<br>
SYMBOL<br>
NAME "cartoline_butt"<br>
TYPE cartoline<br>
LINECAP butt #[butt|round|square|triangle]<br>
LINEJOIN miter #[round|miter|bevel]<br>
LINEJOINMAXSIZE 3 #<br>
END<br>
<br>
SYMBOL<br>
NAME "linie-gepunkt2_C"<br>
TYPE cartoline<br>
LINECAP butt<br>
LINEJOIN miter<br>
LINEJOINMAXSIZE 3<br>
STYLE<br>
1 20 1 20<br>
END<br>
END<br>
<br>
and the following:<br>
CLASS<br>
STYLE<br>
SYMBOL "linie-gestr2_C"<br>
SIZE 1<br>
COLOR 0 0 0<br>
ANTIALIAS TRUE<br>
END<br>
STYLE<br>
SYMBOL "triangle_dash"<br>
SIZE 5<br>
COLOR 255 0 0<br>
OFFSET 3 -99<br>
END<br>
END<br>
<br>
with<br>
SYMBOL<br>
NAME "linie-gestr2_C"<br>
TYPE cartoline<br>
LINECAP round<br>
LINEJOIN miter<br>
LINEJOINMAXSIZE 3<br>
STYLE<br>
10 5 10 5<br>
END<br>
END<br>
<br>
SYMBOL # Dreieck mit einem STYLE für Linienmuster<br>
NAME "triangle_dash"<br>
TYPE VECTOR<br>
POINTS<br>
0 1<br>
0.5 0<br>
1 1<br>
0 1<br>
END<br>
FILLED TRUE<br>
STYLE<br>
1 25 1 25<br>
END<br>
END<br>
<br>
The value -99 as OFFSET y creates a parallel to the origin line and by
this you can creates symbols along curves. <br>
Cartoline is a undocumented Symboltype, but allows you to create nice
ANTIALIAS Lines with variable width. At the moment the symbols are not
rotatetd to keep its orientation to the baseline, but this will be
solved in one of the next releases. You have to modify the STYLE values
in the symbol def to get the pattern you want.<br>
Hope it helps,<br>
Peter <br>
<br>
<pre class="moz-signature" cols="72">--
Mit freundlichem Gruß
Peter Freimuth
_________________________________________________
MapMedia
Kartographie und raumbezogene Informationssysteme
Heilbronner Straße 10
D-10711 Berlin Charlottenburg
fon: +49.(0)30.89 06 82 70
fax: +49.(0)30.89 06 82 73
mail: <a class="moz-txt-link-abbreviated" href="mailto:pf@mapmedia.de">pf@mapmedia.de</a>
net: <a class="moz-txt-link-abbreviated" href="http://www.mapmedia.de">www.mapmedia.de</a>
pgp: on demand
_________________________________________________
</pre>
</body>
</html>