<!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">
Hello Thomas,<br>
<br>
Thank you for your reply. I tried first with an image, but the output
didn't look so hot, so I created my own symbol by following this guide:
<a class="moz-txt-link-freetext" href="http://umn.mapserver.ch/MapServer/en/sym_vector.htm">http://umn.mapserver.ch/MapServer/en/sym_vector.htm</a><br>
<br>
It still doesn't look very nice, but I will tune it from here.<br>
<br>
Thanks again,<br>
Adrian<br>
<br>
Thomas Bonfort wrote:
<blockquote
cite="mid:2922382e0907270500v3d75ba3ana25f260d286bfb25@mail.gmail.com"
type="cite">
<pre wrap="">yes, you can definitely do that with an image symbol, although that
won't be very flexible if you want to change the width.
another solution would be with a vector symbol.
in both cases, you'll have to add a negative GAP to your symbol definition.
cheers,
thomas
<a 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 13:47, Adrian Popa<a 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="">...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...
Thanks.
Adrian Popa wrote:
Hello Thomas,
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.
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?
Thanks again,
Adrian
Thomas Bonfort wrote:
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 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 class="moz-txt-link-rfc2396E" href="mailto:adrian_gh.popa@romtelecom.ro"><adrian_gh.popa@romtelecom.ro></a>
wrote:
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 class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a 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>
</body>
</html>