[mapserver-users] draw hatch pattern with image file (ex. gif, etc)

2010-12-16 Thread Isao NASUNO

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 x
  expression x
  color 255 200 200
  style
image smallimage.gif   # -- like this..
  end
end


Thanks,

Isao NASUNO

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] draw hatch pattern with image file (ex. gif, etc)

2010-12-16 Thread thomas bonfort
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.nas...@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 x
  expression x
  color 255 200 200
  style
    image smallimage.gif   # -- like this..
  end
 end
 

 Thanks,

 Isao NASUNO

 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] draw hatch pattern with image file (ex. gif, etc)

2010-12-16 Thread Isao NASUNO

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 x
  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 NASUNOisao.nas...@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 x
  expression x
  color 255 200 200
  style
image smallimage.gif   #-- like this..
  end
end


Thanks,

Isao NASUNO


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users