Eric Soroos ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a7833314c4d711d3ff630a6
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZDdkYjJhYWI1NWY1NGEwY2E1MWIzOGQ0YjUyNDZmNDciLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-9726?atlOrigin=eyJpIjoiZDdkYjJhYWI1NWY1NGEwY2E1MWIzOGQ0YjUyNDZmNDciLCJwIjoiaiJ9
 ) GEOS-9726 ( 
https://osgeo-org.atlassian.net/browse/GEOS-9726?atlOrigin=eyJpIjoiZDdkYjJhYWI1NWY1NGEwY2E1MWIzOGQ0YjUyNDZmNDciLCJwIjoiaiJ9
 ) External Legend Graphic reported size incorrect in WMS ( 
https://osgeo-org.atlassian.net/browse/GEOS-9726?atlOrigin=eyJpIjoiZDdkYjJhYWI1NWY1NGEwY2E1MWIzOGQ0YjUyNDZmNDciLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.17.1 Assignee: Unassigned Components: WMS 
Created: 02/Sep/20 1:27 PM Priority: Medium Reporter: Eric Soroos ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=5a7833314c4d711d3ff630a6
 )

I have a layer with an external raster style graphic, with a size entered in 
the UI. The corresponding output from the GetCapabilities document is:

```
<Style>
<Name>ODCambodia:Phnom Penh</Name>
<Title>A raster style</Title>
<LegendURL width="560" height="2104">
<Format>image/jpeg</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:type="simple" 
xlink:href="/geoserver/ODCambodia/ows?service=WMS&request=GetLegendGraphic&format=image%2Fjpeg&width=20&height=20&layer=Phnom_Penh_Land_Use_2035"/>
</LegendURL>
</Style>
</Layer>
```

Note that the LegendURL has the correct dimensions, but the provided URL 
requests a height/width of 20.

This causes issues with client software requesting an incorrectly formatted 
legend.

Potential fixes:

* Remove the Height/width tags from the url
* Add the correct Height/Width tags from the External Legend

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

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#100144- 
sha1:44c46f3 )
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to