legend icons and transparency alpha for pixmap

Ken Lord kenlord at GMAIL.COM
Wed Mar 2 17:33:18 EST 2005


Great!

Thanks Sean,

-Ken


On Wed, 2 Mar 2005 15:13:15 -0700, Sean Gillies <sgillies at frii.com> wrote:
> Ken,
>
> It's fixed in CVS and will be working in the 4.4.2 release.
>
> cheers,
> Sean
>
> On Mar 2, 2005, at 3:05 PM, Ken Lord wrote:
>
> > I'd like to second the motion on this bug ..
> >
> > In my case im using Mapserver 4.4.1 CGI, and a vector symbol overtop a
> > solid colour to symbolize the fill of a polygon.
> >
> > The 'TRANSPARENCY ALPHA' setting in the layer, and 'TRANSPARENT ON' in
> > my
> > RGB jpeg outputformat fixed the appearance on the map, the map is fine,
> > but the icons generated in the legend are broken.  The vector symbol
> > lacks
> > the transparency that it has on the map, and blocks out the solid fill
> > colour underneath.
> >
> > The vector symbol is a simple diagonal line:
> >
> > SYMBOL
> >  NAME 'hatch1'
> >  TYPE VECTOR
> >  TRANSPARENT 0
> >  POINTS
> >   0 1
> >   1 0
> >  END
> > END
> >
> > The typical class in the layer with the problem legend icons looks like
> > this:
> >
> >   CLASS
> >       EXPRESSION ....
> >       NAME "...."
> >       STYLE
> >      COLOR 250 250 130
> >       END
> >       STYLE
> >        SYMBOL 'hatch1'
> >       COLOR 153 209 155
> >        SIZE 3
> >       END
> >       STYLE
> >       OUTLINECOLOR 0 0 0
> >       SYMBOL "circle"
> >       SIZE 1
> >       END
> >   END
> >
> > In this case, the legend icon would appear as white with the '153 209
> > 155'
> > diagonal lines, outlined in black. If correct it would appear as '250
> > 250
> > 130' with the '153 209 155' diagonal lines, outlined in black.
> >
> > Thanks
> > Ken Lord
> > Vancouver BC
> >
> >
> --
> Sean Gillies
> sgillies at frii dot com
> http://users.frii.com/sgillies
>
>


--
==============================
Ken Lord B.Sc., A.Dipl.T.H.
7488 Magnolia Terrace
Burnaby BC, V5E 4L1
604-777-2171
kenlord at gmail.com
kenlord at email.com
klord at bgcengineering.com



More information about the mapserver-users mailing list