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)
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:
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.
...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
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
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
There are lots of samples that show you how to loop through a set of search
results. There's a getNumResults() method for layer objects and then a
getResult()
method to retrieve each one individually.
Steve
Mark Brooks mark_bro...@ncsu.edu 07/27/09 9:50 AM
Steve,
This is a huge help. The