[mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?

Edward Mac Gillavry emacgillavry at hotmail.com
Mon Jul 2 14:46:34 PDT 2018


Hi Jonathan,


Thanks for pointing me to the Demo MapServer. That instance works as expected without the WIDTH and HEIGHT params. We're seeing the erroneous behaviour on both a MapServer 7.0.4 and a MapServer 7.0.7 instance. Don't see anything in the release notes / changelogs that would indicate changes to that part of the code either...


Tried http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=DescribeLayer&layers=country_bounds&SLD_version=1.1.0 as well just to see whether vector or raster makes a difference, but the Demo MapServer behaves alright.

>From https://github.com/mapserver/mapserver/issues/1157 I learned that I should be adding the "ows_onlineresource" keyword to the metadata section. Will report back if that resolves the issue...

Cheers,

Edward




________________________________
From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Jonathan Moules <jonathan-lists at lightpear.com>
Sent: Monday, July 2, 2018 10:02 PM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?


Hi Edward,


They don't seem to be required on the Demo MapServer (which is MapServer version 7.0.6):

http://demo.mapserver.org/cgi-bin/wms_landsat?request=DescribeLayer&service=WMS&version=1.3.0&sld_version=1.1.0&layers=WMS_raster


For SLD 1.1.0, looking at the spec, Table 1 and 2 both list the "Parameters in DescribeLayer operation request". The required ones (beyond the standard service/request/version) are:
layers, sld_version

There are no others, either mandatory or optional.


The SLD 1.0 spec is less clear about what's going on, but when I changed the sld_version=1.0.0, Mapserver excepted telling me only 1.1.0 is supported.


Hope that helps in some way,

Cheers,

Jonathan

On 2018-07-02 16:35, Edward Mac Gillavry wrote:

Dear list,


We're currently investigating an error message we get from the WMS service when we execute a DescribeLayer request. It appears MapServer requires WIDTH and HEIGHT parameters to be present:


https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705
<https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705>

However, according to the SLD specs, these are NOT required:


http://portal.opengeospatial.org/files/?artifact_id=22364


Am I interpreting the code or SLD spec incorrectly? Or should I go ahead and remove these checks and provide a PR?


Many thanks,


Edward




_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180702/343c5679/attachment.htm>


More information about the MapServer-users mailing list