Hi there, we are preparing an upgrade of a server with various bits and are
running into some new SLD problems. One being this, given a scale dependant
sld of a point layer:
<FeatureTypeStyle>
<Rule>
<Name>zoomniva_4</Name>
<MinScaleDenominator>100000</MinScaleDenominator>
<MaxScaleDenominator>200000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="svg/bad.svg"
/>
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>20</ogc:Literal>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
<Rule>
<Name>zoomniva_5</Name>
<MinScaleDenominator>50000</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="svg/bad.svg"
/>
<Format>image/svg+xml</Format>
</ExternalGraphic>
<Size>
<ogc:Literal>22</ogc:Literal>
</Size>
</Graphic>
</PointSymbolizer>
</Rule>
since the Geoserver documentation at
https://docs.geoserver.org/latest/en/user/styling/sld/reference/rules.html
states that MaxScaleDenominator is exclusive, the scales should be able to
overlap as above. " /Specifies the maximum scale denominator (exclusive)
for the scale range in which this rule applies. If present, the rule applies
at scales larger than the given scale./" - this leads me to believe the rule
should start at 1:99999.
Our trouble (2.16.2) is the same as with our old server (but now causing a
problem thanks to a new map client) :
wms?service=WMS&version=1.1.0&request=GetLegendGraphic&layer=badplatser&format=image/png&scale=100000
returns the "zoomniva_4" as well as "zoomniva_5" rules, while scale=100001
gives only "_4" and 99999 gives only "_5".
I looked through the issues list for 2.16.2 and didn't find anything, and
since the old server is at an older version of Geoserver I'm not sure that
I'm not doing anything wrong. Logically it seems the likeliest but I can't
seem to figure out what.
Thanks for any enlightenment.
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users