The GetLegendGraphic call with parameters legend_options=hideEmptyRules%3Atrue + BBOX does not seem to work correctly.
Example of a GetLegendGraphic call:
https://demo-geoservices1.civis.bz.it/geoserver/p_bz-AdministrativeUnits/ows?service=WMS&REQUEST=GetLegendGraphic&FORMAT=image%2Fpng&WIDTH=25&HEIGHT=25&VERSION=1.3.0&LAYER=EuropeanBoundaries&BBOX=1113180.576362122%2C5837073.5607445575%2C1290667.3560403015%2C5952340.599398604&CRS=EPSG%3A3857&LANGUAGE=it&legend_options=hideEmptyRules%3Atrue%3BforceLabels%3Aon%3BforceTitles%3Aoff%3Bwrap%3Atrue%3Bwrap_limit%3A400%3B
Example of GetMap on the same layer, with the same BBOX:
https://demo-geoservices1.civis.bz.it/geoserver/p_bz-AdministrativeUnits/ows?service=WMS&REQUEST=GetLegendGraphic&FORMAT=image%2Fpng&WIDTH=25&HEIGHT=25&VERSION=1.3.0&LAYER=EuropeanBoundaries&BBOX=997072.7303969394%2C5808180.364052761%2C1349447.430791602%2C5981233.7960904&CRS=EPSG%3A3857&CRS=EPSG%3A3857&LANGUAGE=it&legend_options=hideEmptyRules%3Atrue%3BforceLabels%3Aon%3BforceTitles%3Aoff%3Bwrap%3Atrue%3Bwrap_limit%3A400%3B
As you can see, both the “linea di costa”, which is out of extent, and the thin line of the “confine di stato”, which would be seen at a higher scale, appear.
Here an example of correct Legend and GetMap on the same layer
https://demo-geoservices1.civis.bz.it/geoserver/p_bz-AdministrativeUnits/ows?service=WMS&REQUEST=GetLegendGraphic&FORMAT=image%2Fpng&WIDTH=25&HEIGHT=25&VERSION=1.3.0&LAYER=EuropeanBoundaries&BBOX=-254244.87173571903%2C6386752.592516086%2C218135.96306667023%2C6673238.574528926&SRS=EPSG%3A3857&CRS=EPSG%3A3857&LANGUAGE=de&legend_options=hideEmptyRules%3Atrue%3BforceLabels%3Aon%3BforceTitles%3Aoff%3Bwrap%3Atrue%3Bwrap_limit%3A400%3B
https://demo-geoservices1.civis.bz.it/geoserver/p_bz-AdministrativeUnits/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng8&TRANSPARENT=true&LAYERS=EuropeanBoundaries%2CEuropeanRegions&STYLES=%2CEuropeanRegions-OnlyLabel&language=de&CRS=EPSG%3A3857&WIDTH=2305&HEIGHT=1132&BBOX=-254244.87173571903%2C6386752.592516086%2C218135.96306667023%2C6673238.574528926
If you want access to the configurazion of GS please write me: pietro.dorio@anonymised.com or stefan.putzer@anonymised.com.
|