Hi,

I´ve just come across this link ...

http://docs.geoserver.org/latest/en/user/styling/sld-extensions/uom.html


...which describes SLDs with dynamic scale dependant rendering.  
This is a fantastic addition to the capabilities of sld files and means that 
that the days of creating 5 or 6 rules for each zoom level could be nearing an 
end.

But...can anyone say if this works with polygon fills?...

I´ve tried without success....the line works ok, but the fill does not.


yours,

Rob

my sld:

<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld";
  xmlns:ogc="http://www.opengis.net/ogc"; xmlns:gml="http://www.opengis.net/gml";
  version="1.0.0">
  <sld:NamedLayer>
    <sld:Name>landwirtschaft_2</sld:Name>
    <sld:UserStyle>
      <sld:Title>landwirtschaft_2</sld:Title>
      <sld:Abstract>landwirtschaft_2</sld:Abstract>
      <sld:FeatureTypeStyle>
        <sld:Rule>
          <sld:Title>Landwirtschaft_2</sld:Title>
          <sld:PolygonSymbolizer 
uom="http://www.opengeospatial.org/se/units/metre";>
            <sld:Fill>
              <sld:GraphicFill>
                <sld:Graphic>
                  <sld:Mark>
                    <sld:WellKnownName>shape://slash</sld:WellKnownName>
                    <sld:Stroke>
                      <sld:CssParameter name="stroke" 
>#F7E3B5</sld:CssParameter>
                      <sld:CssParameter name="width" >2</sld:CssParameter>
                    </sld:Stroke>
                  </sld:Mark>
                </sld:Graphic>
              </sld:GraphicFill>
            </sld:Fill>
          </sld:PolygonSymbolizer>
          <sld:LineSymbolizer 
uom="http://www.opengeospatial.org/se/units/metre";>
            <sld:Stroke>
              <sld:CssParameter name="stroke">
                <ogc:Literal>#C0C0C0</ogc:Literal>
              </sld:CssParameter>
              <sld:CssParameter name="stroke-width">
                <ogc:Literal>2.0</ogc:Literal>
              </sld:CssParameter>
            </sld:Stroke>
          </sld:LineSymbolizer>
        </sld:Rule>
      </sld:FeatureTypeStyle>
    </sld:UserStyle>
  </sld:NamedLayer>
</sld:StyledLayerDescriptor>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to