Yes, I’ll open a ticket.

Regards,
Paul


Von: [email protected] [mailto:[email protected]] Im Auftrag von Andrea 
Aime
Gesendet: Donnerstag, 14. September 2017 11:48
An: Biskup, Paul <[email protected]>
Cc: [email protected]
Betreff: Re: [Geoserver-devel] Bug in GetLegendGraphic countMatched-feature 
when using MaxScaleDenominator in SLD

Hi Paul,
do you have the request too? If you have scale dependencies you need to also 
pass along a bbox and
a width/height so that the code can compute the target scale denominator

Cheers
Andrea


On Thu, Sep 14, 2017 at 11:29 AM, Biskup, Paul 
<[email protected]<mailto:[email protected]>> wrote:
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]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-devel



--

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo 
è consentito esclusivamente al destinatario del messaggio, per le finalità 
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne 
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di 
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro 
sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in 
accord with its purpose, any disclosure, reproduction, copying, distribution, 
or either dissemination, either whole or partial, is strictly forbidden except 
previous formal approval of the named addressee(s). If you are not the intended 
recipient, please contact immediately the sender by telephone, fax or e-mail 
and delete the information in this message that has been received in error. The 
sender does not give any warranty or accept liability as the content, accuracy 
or completeness of sent messages and accepts no responsibility  for changes 
made after they were sent or for other risks which arise as a result of e-mail 
transmission, viruses, etc.

------------------------------------------------------------------------------
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