pietro.dorio ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5fbcdb924a09640069187b05
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNWMyYzY0MzVjNjNkNGE2MGEyZDk1NjBkNTJjNDJiYWQiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10346?atlOrigin=eyJpIjoiNWMyYzY0MzVjNjNkNGE2MGEyZDk1NjBkNTJjNDJiYWQiLCJwIjoiaiJ9
 ) GEOS-10346 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10346?atlOrigin=eyJpIjoiNWMyYzY0MzVjNjNkNGE2MGEyZDk1NjBkNTJjNDJiYWQiLCJwIjoiaiJ9
 ) Problem with GetLegendGraphic + MBR + hideEmptyRules=true ( 
https://osgeo-org.atlassian.net/browse/GEOS-10346?atlOrigin=eyJpIjoiNWMyYzY0MzVjNjNkNGE2MGEyZDk1NjBkNTJjNDJiYWQiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.20.1 Assignee: Unassigned Created: 
28/Dec/21 3:15 PM Priority: High Reporter: pietro.dorio ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5fbcdb924a09640069187b05
 )

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
 ( 
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&SRS=EPSG%3A3857&CRS=EPSG%3A3857&LANGUAGE=de&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
 ( 
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=de&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.do...@siag.it or stefan.put...@siag.it

( 
https://osgeo-org.atlassian.net/browse/GEOS-10346#add-comment?atlOrigin=eyJpIjoiNWMyYzY0MzVjNjNkNGE2MGEyZDk1NjBkNTJjNDJiYWQiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10346#add-comment?atlOrigin=eyJpIjoiNWMyYzY0MzVjNjNkNGE2MGEyZDk1NjBkNTJjNDJiYWQiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100187- 
sha1:76abc0a )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to