[Geoserver-devel] [jira] (GEOS-6245) Not reporting correct style width/height in GetCaps

Jonathan Moules created BugGEOS-6245
Not reporting correct style width/height in GetCaps

Issue Type:

BugBug

Affects Versions:

2.4.1

Assignee:

Andrea Aime

Components:

WMS

Created:

23/Dec/13 7:42 AM

Description:

In the WMS GetCapabilities (1.1.1 and 1.3.0), GeoServer reports for each style:
‘<LegendURL width=“20” height=“20”>’
The problem is, this is often incorrect. I.e., the following is 291280, but the GetCaps shows it as being 2020:
http://maps.warwickshire.gov.uk/gs/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=TRO_ORDERS_GEOSERVER_VIEW

Looking at the 1.3.0 spec, width and height is optional here it seems.
So either:
a) Remove it.
b) (preferable) Ensure it is reporting the correct width/height of the legend.

“and the optional attributes width and height state the size of the image in pixels. Servers should provide the width and height attributes if known at the time of processing the GetCapabilities request”

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Jonathan Moules

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)