SLD filter with raster layers
Bart van den Eijnden
bartvde at XS4ALL.NL
Tue Nov 16 03:06:46 PST 2004
Hi Berend,
is your raster 8 bit? AFAIK it does work but only with 8 bit rasters.
Best regards,
Bart
> 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