Hi GeoServer-team,

I have tested the new "return feature count"-feature in the 
GetLegendGraphic-request. It is a great feature, thank you for that!

But I think that there is a bug, if you have defined a "MaxScaleDenominator" in 
your SLD-rule. If you specify the "MaxScaleDenominator", the returned feature 
count in the generated legend is always "0". The map-view for this SLD-rule 
(GetMap-request) works fine and displays the features correctly according to 
the scale.

The returned feature count works also correctly if you use the 
"minScaleDenominator".

Is this a known bug?

Best regards,
Paul

P.S.: My SLD (maxScale2000:returns always feature count 0; minScale2000:returns 
correct feature count):

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor 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"; 
xsi:schemaLocation="http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"; version="1.0.0">
  <NamedLayer>
    <Name>Count_Test</Name>
    <UserStyle>
      <Name>Count_Test</Name>
      <Title>Count_Test</Title>
      <FeatureTypeStyle>
        <Rule>
          <Name>maxScale2000</Name>
          <Title>maxScale2000</Title>
          <MaxScaleDenominator>2000</MaxScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <Mark>
                <WellKnownName>circle</WellKnownName>
                <Fill>
                  <CssParameter name="fill">#00FFFF</CssParameter>
                </Fill>
              </Mark>
              <Opacity>1</Opacity>
              <Size>10</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
        <Rule>
          <Name>minScale2000</Name>
          <Title>minScale2000</Title>
          <MinScaleDenominator>2000</MinScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <Mark>
                <WellKnownName>circle</WellKnownName>
                <Fill>
                  <CssParameter name="fill">#734C00</CssParameter>
                </Fill>
              </Mark>
              <Opacity>1</Opacity>
              <Size>9</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to