[Geoserver-devel] [JIRA] (GEOS-9726) External Legend Graphic reported size incorrect in WMS

Eric Soroos created an issue

GeoServer / BugGEOS-9726

External Legend Graphic reported size incorrect in WMS

Issue Type:

BugBug

Affects Versions:

2.17.1

Assignee:

Unassigned

Components:

WMS

Created:

02/Sep/20 1:27 PM

Priority:

MediumMedium

Reporter:

Eric Soroos

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

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100144-sha1:44c46f3)

Atlassian logo