Pixmap symbols and transparent

Stephen Davies sdc at SDC.COM.AU
Wed Nov 30 15:44:49 PST 2005


Thanks for the feedback.
Here is some more info.

Cheers and thanks.
Stephen

The image I am using is attached.
The symbol file looks like this:

SYMBOL
	NAME 'tree'
	TYPE PIXMAP
	IMAGE "/usr/local/apache2/htdocs/benparts/symimages/tree.png"
END

The mapfile entry looks like this:

    LAYER
      CONNECTIONTYPE postgis
      NAME "cadt"
      DATA "geom from cad"
      CONNECTION "user=scldad dbname=benparts"
      STATUS DEFAULT
      TYPE POINT
      PROJECTION
        "init=epsg:4263"
      END
      FILTER "gtype='T' and client_id=15"
      CLASSITEM "type"
      CLASS
	EXPRESSION "201"
	STYLE
	  COLOR 0 255 0
	END
	STYLE
	  SYMBOL "tree"
	  COLOR 0 255 0
	  SIZE 9
	END
      END


    END
END




On Tue, 29 Nov 2005 08:31 am, Steve Lime wrote:
> Try using a transparent image as a marker and see what happens.
> 
> Steve
> 
> >>> Stephen Davies <sdc at SDC.COM.AU> 11/28/05 3:50 PM >>>
> I am basing my symbol work on the recent "Construction of Cartographic 
> Symbols" paper.
> 
> Cheers,
> Stephen
> 
> On Tue, 29 Nov 2005 12:17 am, Steve Lime wrote:
> > You shouldn't have to do that, in fact, I don't believe that option 
is 
> even used any more. MapServer will use transparency if the image has 
> it. There must be an error in the documentation someplace.
> > 
> > Are you seeing otherwise?
> > 
> > Steve
> > 
> > >>> Stephen Davies <sdc at SDC.COM.AU> 11/28/05 4:27 AM >>>
> > How does one determine the palette indexes for use with the 
> TRANSPARENT 
> > option in pixmap symbol definitions?
> > 
> > (Why is the transparency of the image file not used?)
> > 
> > Cheers and thanks,
> > Stephen
> > 
> > -- 
> > 
> 
========================================================================
> > This email is for the person(s) identified above, and is 
confidential 
> to
> > the sender and the person(s).  No one else is authorised to use or
> > disseminate this email or its contents.
> > 
> > Stephen Davies Consulting                            Voice: 08-8177 
> 1595
> > Adelaide, South Australia.                             Fax: 08-8177 
> 0133
> > Computing & Network solutions.                       Mobile:0403 
0405 
> 83
> > 
> > 
> > 
> 
> -- 
> 
========================================================================
> This email is for the person(s) identified above, and is confidential 
to
> the sender and the person(s).  No one else is authorised to use or
> disseminate this email or its contents.
> 
> Stephen Davies Consulting                            Voice: 08-8177 
1595
> Adelaide, South Australia.                             Fax: 08-8177 
0133
> Computing & Network solutions.                       Mobile:0403 0405 
83
> 
> 
> 

-- 
========================================================================
This email is for the person(s) identified above, and is confidential to
the sender and the person(s).  No one else is authorised to use or
disseminate this email or its contents.

Stephen Davies Consulting                            Voice: 08-8177 1595
Adelaide, South Australia.                             Fax: 08-8177 0133
Computing & Network solutions.                       Mobile:0403 0405 83
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051201/917140b2/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.png
Type: image/png
Size: 812 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20051201/917140b2/attachment.png>


More information about the MapServer-users mailing list