<sld:StyledLayerDescriptor version="1.1.0"
    xmlns="http://www.opengis.net/sld"
    xmlns:sld="http://www.opengis.net/sld"
    xmlns:se="http://www.opengis.net/se"
    xmlns:ogc="http://www.opengis.net/ogc"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:WFS_ERM="http://gdz.bkg.bund.de/wfs_erm"
    xsi:schemaLocation="http://www.opengis.net/sld
    http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">
    <sld:NamedLayer>
        <se:Name>inspire_hydrography:HY.PhysicalWaters.Waterbodies</se:Name>
        <se:Description><se:Abstract>Physical waters as watercourses or standing water can be
            portrayed with different geometries depending on its dimensions and the level of
            detail or resolution. Lineal watercourses are depicted by solid blue (#33CCFF)
            lines with stroke width of 1 pixel and the superficial ones are depicted by
            filled blue light polygons (#CCFFFF) without border. Punctual standing waters
            are depicted by dark blue (#0066FF) circles with size of 6 pixel and the
            superficial ones are depicted by filled blue light polygons (#CCFFFF) without
            border.</se:Abstract></se:Description>
        <sld:UserStyle>
            <se:Name>HY.PhysicalWaters.Waterbodies.Default</se:Name>
            <sld:IsDefault>1</sld:IsDefault>
            <se:FeatureTypeStyle>
                <se:Name>HY.PhysicalWaters.Waterbodies.Watercourse</se:Name>
                <se:Description>
                    <se:Title>Water bodies : Watercourse default style</se:Title>                    
                </se:Description>
                <se:FeatureTypeName>PhysicalWaters.Waterbodies.watercourse</se:FeatureTypeName>
                <se:Rule>
                    <ogc:Filter>
                        <ogc:And>
                    <ogc:PropertyIsEqualTo>
                            <ogc:PropertyName>geomtype</ogc:PropertyName>
                        <ogc:Literal>LINESTRING</ogc:Literal>
                    </ogc:PropertyIsEqualTo>
                        <!--Delineation is known-->
                        <ogc:PropertyIsEqualTo>
                            <ogc:PropertyName>surfacewaterclass</ogc:PropertyName>
                            <ogc:Literal>watercourse</ogc:Literal>
                        </ogc:PropertyIsEqualTo>
                        </ogc:And>
                    </ogc:Filter>
                    <se:LineSymbolizer>
                        <se:Geometry>
                            <ogc:PropertyName>geometry</ogc:PropertyName>
                        </se:Geometry>
                        <se:Stroke>
                            <se:SvgParameter name="stroke">#33CCFF</se:SvgParameter>
                            <se:SvgParameter name="stroke-width">1</se:SvgParameter>
                        </se:Stroke>
                    </se:LineSymbolizer>
                </se:Rule>
                <se:Rule>
                        <ogc:Filter>
                            <ogc:And>
                                <ogc:Or>
                                <ogc:PropertyIsEqualTo>
                                    <ogc:PropertyName>geomtype</ogc:PropertyName>
                                    <ogc:Literal>POLYGON</ogc:Literal>
                                </ogc:PropertyIsEqualTo>
                                <ogc:PropertyIsEqualTo>
                                    <ogc:PropertyName>geomtype</ogc:PropertyName>
                                    <ogc:Literal>MULTIPOLYGON</ogc:Literal>
                                </ogc:PropertyIsEqualTo>
                                </ogc:Or>
                                <!--Delineation is known-->
                                <ogc:PropertyIsEqualTo>
                                    <ogc:PropertyName>surfacewaterclass</ogc:PropertyName>
                                    <ogc:Literal>watercourse</ogc:Literal>
                                </ogc:PropertyIsEqualTo>
                            </ogc:And>
                        </ogc:Filter>
                    <se:PolygonSymbolizer>
                        <se:Geometry>
                            <ogc:PropertyName>geometry</ogc:PropertyName>
                        </se:Geometry>
                        <se:Fill>
                            <se:SvgParameter name="fill">#CCFFFF</se:SvgParameter>
                        </se:Fill>
                    </se:PolygonSymbolizer>
                </se:Rule>
            </se:FeatureTypeStyle>
            <se:FeatureTypeStyle>
                <se:Name>HY.PhysicalWaters.Waterbodies.StandingWater</se:Name>
                <se:Description>
                    <se:Title>Water bodies : Standing Water default style</se:Title>                    
                </se:Description>
                <se:FeatureTypeName>PhysicalWaters.Waterbodies.StandingWater</se:FeatureTypeName>
                <se:Rule>
                        <ogc:Filter>
                            <ogc:And>
                                    <ogc:PropertyIsEqualTo>
                                        <ogc:PropertyName>geomtype</ogc:PropertyName>
                                        <ogc:Literal>POINT</ogc:Literal>
                                    </ogc:PropertyIsEqualTo>
                                <!--Delineation is known-->
                                <ogc:PropertyIsEqualTo>
                                    <ogc:PropertyName>surfacewaterclass</ogc:PropertyName>
                                    <ogc:Literal>watercourse</ogc:Literal>
                                </ogc:PropertyIsEqualTo>
                            </ogc:And>
                        </ogc:Filter>
                    <se:PointSymbolizer>
                        <se:Graphic>
                            <se:Mark>
                                <se:WellKnownName>circle</se:WellKnownName>
                                <se:Fill>
                                    <se:SvgParameter name="fill">#0066FF</se:SvgParameter>
                                </se:Fill>
                            </se:Mark>
                            <se:Size>6</se:Size>
                        </se:Graphic>
                    </se:PointSymbolizer>
                    </se:Rule>
                    <se:Rule>
                        <ogc:Filter>
                            <ogc:And>
                                <ogc:Or>
                                    <ogc:PropertyIsEqualTo>
                                        <ogc:PropertyName>geomtype</ogc:PropertyName>
                                        <ogc:Literal>POLYGON</ogc:Literal>
                                    </ogc:PropertyIsEqualTo>
                                    <ogc:PropertyIsEqualTo>
                                        <ogc:PropertyName>geomtype</ogc:PropertyName>
                                        <ogc:Literal>MULTIPOLYGON</ogc:Literal>
                                    </ogc:PropertyIsEqualTo>
                                </ogc:Or>
                                <!--Delineation is known-->
                                <ogc:PropertyIsEqualTo>
                                    <ogc:PropertyName>surfacewaterclass</ogc:PropertyName>
                                    <ogc:Literal>watercourse</ogc:Literal>
                                </ogc:PropertyIsEqualTo>
                            </ogc:And>
                        </ogc:Filter>
                    <se:PolygonSymbolizer>
                        <se:Geometry>
                            <ogc:PropertyName>geometry</ogc:PropertyName>
                        </se:Geometry>
                        <se:Fill>
                            <se:SvgParameter name="fill">#CCFFFF</se:SvgParameter>
                        </se:Fill>
                    </se:PolygonSymbolizer>
                </se:Rule>
                </se:FeatureTypeStyle>
            </sld:UserStyle>
    </sld:NamedLayer>
</sld:StyledLayerDescriptor>

