[QGIS-Developer] WMS loaded in qgis desktop, not in server
Jeff McKenna
jmckenna at gatewaygeomatics.com
Fri Feb 21 10:02:36 PST 2020
Hi Paolo,
I just came across your exact error message (which I usually avoid since
when I setup WMS servers I remove the requirement for the "MAP="
parameter), which I can duplicate if I leave in the "MAP=" parameter in
the onlineresource url such as:
https://ms4w.dev/cgi-bin/mapserv.exe?map=/ms4w/apps/local-demo/local.map
<--that will return your error message that you saw earlier I believe
And here is a full request:
https://ms4w.dev/cgi-bin/mapserv.exe?map=/ms4w/apps/local-demo/local.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-90,-180,83.64509999999999934,180&CRS=EPSG:4326&WIDTH=520&HEIGHT=251&LAYERS=countries&STYLES=&FORMAT=image/png&DPI=72&MAP_RESOLUTION=72&FORMAT_OPTIONS=dpi:72&TRANSPARENT=TRUE
So I guess my point is that there is no problem with your external WMS
service, but there might be a problem with how QGIS server handles WMS
onlineresource urls with that 'MAP=' parameter, my guess.
Not sure if this email helps, but I thought of you minutes ago when I
saw this with my own server.
(or if you moved on from this, then, I wish you a happy weekend ha)
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
On 2020-02-13 11:22 a.m., Paolo Cavallini wrote:
> Hi Jeff,
> I regularly use WMS services, and this is the first time I hit this
> different behaviour between server and desktop, so I think this is
> related to that specific server.
> Cheers.
>
> Il 13/02/20 16:19, Jeff McKenna ha scritto:
>> On 2020-02-13 11:00 a.m., Paolo Cavallini wrote:
>>>
>>> Indeed, adding
>>> ?SERVICE=WMS&REQUEST=GetCapabilities
>>> returns valid results.
>>> curl from the same server downloads a valid image.
>>> Unclear therefore why the layers are shown in desktop and not in the
>>> server. Could it be that they do not allow wms cascading?
>>> I worked around this by taking data directly from wms, without passing
>>> from qgis server, but it would be nice to understand this behaviour.
>>> Thanks Richard for the plugin, very useful.
>>> Cheers.
>>>
>>
>> Paolo does the same issue occur when you leverage my server instead,
>> inside your application? If so I can check my Apache logs when you hit
>> it, to see what request your application is sending to MapServer.
>>
>> -jeff
>>
>>
>
More information about the QGIS-Developer
mailing list