[mapserver-users] Applying a hatch over a line layer

2009-07-27 Thread Adrian Popa
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)

Re: [mapserver-users] Applying a hatch over a line layer

2009-07-27 Thread Thomas Bonfort
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 www.camptocamp.com +33 4 79 26 57 97 On Mon, Jul 27, 2009 at 11:37, Adrian Popaadrian_gh.p...@romtelecom.ro wrote:

Re: [mapserver-users] Applying a hatch over a line layer

2009-07-27 Thread Adrian Popa
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.

Re: [mapserver-users] Applying a hatch over a line layer

2009-07-27 Thread Adrian Popa
...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

Re: [mapserver-users] Applying a hatch over a line layer

2009-07-27 Thread Thomas Bonfort
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 www.camptocamp.com +33 4 79 26

Re: [mapserver-users] Applying a hatch over a line layer

2009-07-27 Thread Adrian Popa
Hello Thomas, 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: http://umn.mapserver.ch/MapServer/en/sym_vector.htm It still doesn't look very nice, but I will tune it from here. Thanks again, Adrian