[mapserver-users] draw hatch pattern with image file (ex. gif, etc)
Isao NASUNO
isao.nasuno at ctc-g.co.jp
Thu Dec 16 20:24:06 PST 2010
Hi, Thomas,
Thank you for your response.
But, my question was wrong, I am sorry. What I want to do is filling up
polygon with a pattern using image file with transparency attribute.
Finally I found how to do it as following.
------------
:
type polygon
class
name "xxxxx"
expression "x"
color 255 200 200
style
symbol "pattern" #
end
end
------------
SYMBOL
NAME "pattern"
TYPE pixmap
image /home/myhome/pattern.gif
transparent 1 # color index
END
------------
It's closed, thank you,
Isao NASUNO
(2010/12/16 18:59), thomas bonfort wrote:
> if your image contains a hatch, yes, it's possible, although you can't
> change the color.
> if you want to create a hatch, use:
>
> symbol
> name "hatch"
> type hatch
> end
>
> layer
> ...
> style
> symbol "hatch"
> color 0 0 0
> angle 45 #hatch orientation
> width 1 #line width
> size 10 #spacing between lines
> end
> end
>
> --
> thomas
>
> On Thu, Dec 16, 2010 at 10:46, Isao NASUNO<isao.nasuno at ctc-g.co.jp> wrote:
>> Hello all,
>>
>> Is it possible to draw hatch pattern without symbol (vector)
>> but using small image file which have tranparency like gif etc ?
>> Layer type is polygon.
>>
>> ------------
>> :
>> type polygon
>> :
>> class
>> name "xxxxx"
>> expression "x"
>> color 255 200 200
>> style
>> image smallimage.gif #<-- like this..
>> end
>> end
>> ------------
>>
>> Thanks,
>>
>> Isao NASUNO
>>
More information about the MapServer-users
mailing list