<!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>
&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; SYMBOL "cartoline_butt"<br>
&nbsp;&nbsp;&nbsp; SIZE 1<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp; END<br>
&nbsp; STYLE<br>
&nbsp;&nbsp; #SYMBOL "linie-gepunkt2"<br>
&nbsp;&nbsp;&nbsp; SYMBOL "linie-gepunkt2_C"<br>
&nbsp;&nbsp;&nbsp; SIZE 7<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp;&nbsp;&nbsp; OFFSET -4 -99<br>
&nbsp; END<br>
END<br>
<br>
SYMBOL<br>
&nbsp; NAME "cartoline_butt"<br>
&nbsp; TYPE cartoline<br>
&nbsp; LINECAP butt&nbsp; #[butt|round|square|triangle]<br>
&nbsp; LINEJOIN miter #[round|miter|bevel]<br>
&nbsp; LINEJOINMAXSIZE 3 #<br>
END<br>
<br>
SYMBOL<br>
&nbsp; NAME "linie-gepunkt2_C"<br>
&nbsp; TYPE cartoline<br>
&nbsp; LINECAP butt<br>
&nbsp; LINEJOIN miter<br>
&nbsp; LINEJOINMAXSIZE 3<br>
&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; 1 20 1 20<br>
&nbsp; END<br>
END<br>
<br>
and the following:<br>
CLASS<br>
&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; SYMBOL "linie-gestr2_C"<br>
&nbsp;&nbsp;&nbsp; SIZE 1<br>
&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE<br>
&nbsp; END<br>
&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; SYMBOL "triangle_dash"<br>
&nbsp;&nbsp;&nbsp; SIZE 5<br>
&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp; OFFSET 3 -99<br>
&nbsp; END<br>
END<br>
<br>
&nbsp;with<br>
SYMBOL<br>
&nbsp; NAME "linie-gestr2_C"<br>
&nbsp; TYPE cartoline<br>
&nbsp; LINECAP round<br>
&nbsp; LINEJOIN miter<br>
&nbsp; LINEJOINMAXSIZE 3<br>
&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; 10 5 10 5<br>
&nbsp; END<br>
END<br>
<br>
SYMBOL # Dreieck mit einem STYLE f&uuml;r Linienmuster<br>
&nbsp; NAME "triangle_dash"<br>
&nbsp; TYPE VECTOR<br>
&nbsp; POINTS<br>
&nbsp;&nbsp;&nbsp; 0 1<br>
&nbsp;&nbsp;&nbsp; 0.5 0<br>
&nbsp;&nbsp;&nbsp; 1 1<br>
&nbsp;&nbsp;&nbsp; 0 1<br>
&nbsp; END<br>
&nbsp; FILLED TRUE<br>
&nbsp; STYLE<br>
&nbsp;&nbsp;&nbsp; 1 25 1 25<br>
&nbsp; 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&szlig;
Peter Freimuth
_________________________________________________
MapMedia
Kartographie und raumbezogene Informationssysteme

Heilbronner Stra&szlig;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>