Filter and Transparency Question

Thomas Hammerlund tom at MAPLINK.JP
Fri May 26 02:16:33 EDT 2006


Hi Everyone,

I have a question about filtering.

My style sheet looks like this for my building layer:
     <xsl:template match= "svg/g[@id= 'g0014']" >
     <g>
     <xsl:copy-of select="@*"/>

     <xsl:attribute name="style">stroke:SlateGray;stroke-width:0.5pt; 
fill:#c2a988;filter:url(#dropShadow);opacity:0.8;</xsl:attribute>

     <xsl:copy-of select="./*"/>
     </g>
     </xsl:template>

I read through the documentation about filtering on the mapserver site, but 
I'm a little confused by it.  Can anyone help me figure out how to add the 
shadow to my buildings?  I don't really get the transparency/opacity aspect 
of it either.  Here is my layer:

  LAYER
  NAME g0014
  STATUS ON
  TILEINDEX "g0014_ix"
  TILEITEM "location"
  TYPE POLYGON
#  FILTERITEM 'Code'
  #TRANSPARENCY 92


### Z1
  CLASS
       MAXSCALE 2500
       MINSCALE 1
# FILTER 'dropshadow'
    STYLE
        COLOR 194 169 136
    END
    STYLE
 OUTLINECOLOR 112 128 144
 #WIDTH 2
        #OFFSET 1 -1
 #SHADOW 2
   END
  END
 END

Thank you in advance.
Tom 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060526/ca3fdcb8/attachment.html


More information about the mapserver-users mailing list