SLD filter with raster layers

Berend Veldkamp berend.veldkamp at ARIS.NL
Tue Nov 16 05:58:31 EST 2004


Hi,

I been experimenting with sld filters, and so far, I've been able to use
them with feature layers, but not with raster layers (GeoTIFF).
The WMS request goes like this:
http://localhost/cgi-bin/mapserv?map=../map/test.map&service=wms&version=1.0.0&request=getmap&layers=ras&sld=http://localhost/sld/raster.sld

where raster.sld contains:

<StyledLayerDescriptor version='1 0 0'>
   <NamedLayer>
     <Name>ras</Name>
     <UserStyle>
       <Title>ras</Title>
       <FeatureTypeStyle>
         <Rule>
           <Filter>
             <BBox>
               <PropertyName>Geometry</PropertyName>
               <Box srsName="EPSG:28992">
                 <coordinates>0,0 100000,512500</coordinates>
               </Box>
             </BBox>
           </Filter>

           <RasterSymbolizer>
             <Opacity>1.0</Opacity>
             <ColorMap>
               <ColorMapEntry color="#FF0000" quantity="64" />
               <ColorMapEntry color="#00FF00" quantity="128" />
               <ColorMapEntry color="#0000FF" quantity="200" />
             </ColorMap>
           </RasterSymbolizer>

         </Rule>
       </FeatureTypeStyle>
     </UserStyle>
   </NamedLayer>
</StyledLayerDescriptor>

When I leave out the <Filter> part, the layer is drawn, so maybe
rasterlayers don't supports filters yet?

I'm using a nightly build from sep 20. and as far as I can tell there
haven't been any changes in this area, at least not in mapogcsld.c.

Thanks, Berend

--
____________________________

Berend Veldkamp - ARIS
http://www.aris.nl/
____________________________



More information about the mapserver-users mailing list