Dear, I'm trying to define a SLD rule to apply a mask over a raster layer in order to make transparent all the image outside of a polygon. I want to use it to publish full raster maps (with legende) and make all the external content transparent.
It is possible to do it with Geoserver? I am thinking on any like this: <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!-- a Named Layer is the basic building block of an SLD document --> <NamedLayer> <Name>TheName</Name> <UserStyle> <Title>TheTitle</Title> <Abstract>TheAbstract</Abstract> <FeatureTypeStyle> <Rule> <Name>TheRuleName</Name> <Title>RuleTitle</Title> <Abstract>RuleAbstract</Abstract> <ogc:Filter> <Within> <PropertyName>WKB_GEOM</PropertyName> <Polygon name="1" srsName="EPSG:4326"><outerBoundaryIs><LinearRing><coordinates>-9.852620777390985,44.004899819177012 -4.470297097577549,43.987766050797482 -4.508584704808891,41.320830104705493 -9.852719379692296,41.301005576398182 -9.852719379692296,41.301005576398182 -9.852620777390985,44.004899819177012</coordinates></LinearRing></outerBoundaryIs></Polygon> </Within> </ogc:Filter> <RasterSymbolizer> <Opacity>1.0</Opacity> </RasterSymbolizer> </Rule> </FeatureTypeStyle> </UserStyle> </NamedLayer> </StyledLayerDescriptor> Can any on help me?, please Thank you Miguel A. Manso ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
