[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-users
Subject:    Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT params?
From:       Edward Mac Gillavry <emacgillavry () hotmail ! com>
Date:       2018-07-04 8:55:13
Message-ID: VI1P189MB0542897A7CC493E46A5A2E88D7410 () VI1P189MB0542 ! EURP189 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

Setting the SIZE parameter at the MAP level solved the error. Since we're merely \
using the OGC interfaces we'd left out the SIZE parameter until now.


The error message "msWMSLoadGetMapParams(): WMS server error. Image size out of \
range, WIDTH and HEIGHT must be between 1 and ..." sent me in the wrong direction. \
Somehow, among the WMS requests GetCapabilities request doesn't trigger the error \
message, although there are no WIDTH or HEIGHT parameters in the request either.


Best,


Edward

________________________________
From: mapserver-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Edward \
                Mac Gillavry <emacgillavry@hotmail.com>
Sent: Monday, July 2, 2018 11:46 PM
To: mapserver-users@lists.osgeo.org; jonathan-lists@lightpear.com
Subject: Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and HEIGHT \
params?


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@lists.osgeo.org> on behalf of Jonathan \
                Moules <jonathan-lists@lightpear.com>
Sent: Monday, July 2, 2018 10:02 PM
To: mapserver-users@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@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" \
dir="ltr"> <p style="margin-top:0;margin-bottom:0">Setting the SIZE parameter at the \
MAP level solved the error. Since we're merely using the OGC interfaces we'd left out \
the SIZE parameter until now.&nbsp;</p> <p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">The error message \
&quot;msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and \
HEIGHT must be between 1 and ...&quot;&nbsp;sent me in the wrong direction. Somehow, \
among the WMS requests GetCapabilities request  doesn't trigger the error message, \
although there are no WIDTH or HEIGHT parameters in the request either.</p> <p \
style="margin-top:0;margin-bottom:0"><br> </p>
<p style="margin-top:0;margin-bottom:0">Best,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Edward<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, \
sans-serif" color="#000000"><b>From:</b> mapserver-users \
&lt;mapserver-users-bounces@lists.osgeo.org&gt; on behalf of Edward Mac Gillavry \
&lt;emacgillavry@hotmail.com&gt;<br> <b>Sent:</b> Monday, July 2, 2018 11:46 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org; jonathan-lists@lightpear.com<br>
<b>Subject:</b> Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and \
HEIGHT params?</font> <div>&nbsp;</div>
</div>
<meta content="text/html; charset=iso-8859-1">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; \
font-family:Calibri,Helvetica,sans-serif"> <p style="margin-top:0; \
margin-bottom:0">Hi Jonathan,</p> <p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">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...</p> <p style="margin-top:0; \
margin-bottom:0"><br> </p>
<p style="margin-top:0; margin-bottom:0">Tried <a \
href="http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=DescribeLayer&amp;layers=country_bounds&amp;SLD_version=1.1.0" \
class="x_OWAAutoLink" id="LPlnk512771" previewremoved="true"> \
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=DescribeLayer&amp;layers=country_bounds&amp;SLD_version=1.1.0</a> \
as well just to see whether vector or raster makes a difference, but the Demo \
MapServer behaves alright.</p> <div><br>
</div>
<div>From <a href="https://github.com/mapserver/mapserver/issues/1157" \
class="x_OWAAutoLink" id="LPlnk893967" previewremoved="true"> \
https://github.com/mapserver/mapserver/issues/1157</a> I learned that I should be \
adding <span>the &quot;ows_onlineresource&quot; keyword to the metadata section. Will \
report back if that resolves the issue...</span></div> <div><span><br>
</span></div>
<div><span>Cheers,</span></div>
<div><span><br>
</span></div>
<div><span>Edward</span><br>
</div>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, \
sans-serif" color="#000000"><b>From:</b> mapserver-users \
&lt;mapserver-users-bounces@lists.osgeo.org&gt; on behalf of Jonathan Moules \
&lt;jonathan-lists@lightpear.com&gt;<br> <b>Sent:</b> Monday, July 2, 2018 10:02 \
PM<br> <b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> Re: [mapserver-users] WMS DescribeLayer: MapServer requires WIDTH and \
HEIGHT params?</font> <div>&nbsp;</div>
</div>
<meta content="text/html; charset=Windows-1252">
<div style="background-color:#FFFFFF">
<p>Hi Edward,</p>
<p><br>
</p>
<p>They don't seem to be required on the Demo MapServer (which is <span \
style="color:rgb(35,110,37); font-family:monospace; font-size:13px; \
font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; \
line-height:normal; orphans:auto; text-align:start; text-indent:0px; \
text-transform:none; white-space:pre; widows:1; word-spacing:0px; \
display:inline!important; float:none"> MapServer version 7.0.6)</span>:</p>
<p><a class="x_x_moz-txt-link-freetext x_OWAAutoLink" \
href="http://demo.mapserver.org/cgi-bin/wms_landsat?request=DescribeLayer&amp;service=WMS&amp;version=1.3.0&amp;sld_version=1.1.0&amp;layers=WMS_raster" \
id="LPlnk298189" previewremoved="true">http://demo.mapserver.org/cgi-bin/wms_landsat?r \
equest=DescribeLayer&amp;service=WMS&amp;version=1.3.0&amp;sld_version=1.1.0&amp;layers=WMS_raster</a></p>
 <p><br>
</p>
<p>For SLD 1.1.0, looking at the spec, Table 1 and 2 both list the &quot;Parameters \
in DescribeLayer operation request&quot;. The required ones (beyond the standard \
service/request/version) are:<br> layers, sld_version</p>
<p>There are no others, either mandatory or optional.</p>
<p><br>
</p>
<p>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.<br> </p>
<p><br>
</p>
<p>Hope that helps in some way,</p>
<p>Cheers,</p>
<p>Jonathan<br>
</p>
<br>
<div class="x_x_moz-cite-prefix">On 2018-07-02 16:35, Edward Mac Gillavry wrote:<br>
</div>
<blockquote type="cite">
<div id="x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; \
font-family:Calibri,Helvetica,sans-serif"> <p style="margin-top:0; \
margin-bottom:0">Dear list,</p> <p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">We're currently investigating an error \
message we get from the WMS service <font size="2"><span style="font-size:11pt">when \
we execute a DescribeLayer request. It appears MapServer requires WIDTH and HEIGHT \
parameters to be present:</span></font></p> <p style="margin-top:0; \
margin-bottom:0"><font size="2"><span style="font-size:11pt"><br> </span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt"><a \
href="https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705" \
class="x_x_OWAAutoLink" id="LPlnk214898" \
previewremoved="true">https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705</a><a \
href="https://github.com/mapserver/mapserver/blob/branch-7-0/mapwms.c#L1705" \
class="x_x_OWAAutoLink" id="LPlnk214898" previewremoved="true"><br> </a><br>
</span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt">However, according to the SLD specs, these are NOT \
required:</span></font></p> <p style="margin-top:0; margin-bottom:0"><font \
size="2"><span style="font-size:11pt"><br> </span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt"><a \
href="http://portal.opengeospatial.org/files/?artifact_id=22364" \
class="x_x_OWAAutoLink" id="LPlnk236007" \
previewremoved="true">http://portal.opengeospatial.org/files/?artifact_id=22364</a><br>
 </span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt"><br> </span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt">Am I interpreting the code or SLD spec incorrectly? Or should \
I go ahead and remove these checks and provide a PR?</span></font></p> <p \
style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt"><br> </span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt">Many thanks,</span></font></p> <p style="margin-top:0; \
margin-bottom:0"><font size="2"><span style="font-size:11pt"><br> </span></font></p>
<p style="margin-top:0; margin-bottom:0"><font size="2"><span \
style="font-size:11pt">Edward</span></font></p> <p style="margin-top:0; \
margin-bottom:0"><br> </p>
</div>
<br>
<fieldset class="x_x_mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
mapserver-users mailing list
<a class="x_x_moz-txt-link-abbreviated x_OWAAutoLink" \
href="mailto:mapserver-users@lists.osgeo.org" id="LPlnk199164" \
previewremoved="true">mapserver-users@lists.osgeo.org</a> <a \
class="x_x_moz-txt-link-freetext x_OWAAutoLink" \
href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" id="LPlnk672931" \
previewremoved="true">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></pre>
 </blockquote>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>


[Attachment #4 (unknown)]

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic