<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
...Or, to be more clear, I would like to give my lines a "striped" look
- I don't know if there's an easier way to do it than using a symbol...<br>
<br>
Thanks.<br>
<br>
<br>
Adrian Popa wrote:
<blockquote cite="mid:4A6D931F.9030003@romtelecom.ro" type="cite">
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
Hello Thomas,<br>
<br>
Thank you for your reply. I tried your solution and it draws a dashed
line paralel to my feature (on each side because the symbol is
thicker). This is nice, but I was wondering if it's possible to draw
the lines at an angle relative to my feature, thus created the "hatch"
effect.<br>
<br>
If this is not possible with a simple symbol - would it be possible
with a graphical symbol (picture)? And if yes, should I expect a high
performance penalty?<br>
<br>
Thanks again,<br>
Adrian<br>
<br>
Thomas Bonfort wrote:
<blockquote
cite="mid:2922382e0907270411i1a999d6emb3ea48c7dec4f2e5@mail.gmail.com"
type="cite">
<pre wrap="">hi,
hatches only apply to polygon layers.
what you are probably looking for is the PATTERN keyword:
symbol
type simple
pattern 2 2 end
name "dashes"
end
regards,
thomas
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.camptocamp.com">www.camptocamp.com</a>
+33 4 79 26 57 97
On Mon, Jul 27, 2009 at 11:37, Adrian Popa<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:adrian_gh.popa@romtelecom.ro"><adrian_gh.popa@romtelecom.ro></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I'm trying to apply a hatch over a line segment, but it doesn't seem to
work.
My symbol definition is:
SYMBOL NAME 'hatch'
TYPE HATCH END
My layer definition is:
LAYER
TYPE LINE
...
CLASS
NAME "Test"
EXPRESSION ( "[flag]" eq "1")
STYLE SYMBOL 'hatch'
ANGLE 45 SIZE 3 #spacing between
lines
WIDTH 4 #width of each line color "#000000"
END style
color "#fff94d" width 2
antialias true end
END
END
The behavior is the following: mapserver draws the lines using the second
style (a yellowish color), but doesn't draw a hatch over my line.
I've tried with the hatch symbol after the style definition, but it still
doesn't work. The hatch worked for POLYGON layers just fine.
Is there any way I can use it for LINE data?
Thanks,
Adrian
P.S. I'm using mapserver 5.4.1
_______________________________________________
mapserver-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>