GetMap request from QWC2 miss map-parameter

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

GetMap request from QWC2 miss map-parameter

Thomas Schüttenberg-3
Hi there!

I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!

It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.

Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.

For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401

Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297

A GetLegendGraphic however request reads:
/qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail

I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)

Cheers!
Thomas
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Sandro Mani
Hi Thomas

Does the WMS url you used in themesConfig.json actually contain the map
parameter?

Sandro


On 28.03.19 09:58, Thomas Schüttenberg wrote:

> Hi there!
>
> I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
>
> It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
>
> Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
>
> For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
> /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
>
> Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
> http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
>
> A GetLegendGraphic however request reads:
> /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
>
> I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
>
> Cheers!
> Thomas
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Thomas Schüttenberg-3
Hi Sandro,

yes it does. It is like this
"http://nt440geo3:90/qgis/qgis_mapserv.fcgi.exe?MAP=D:/GEODaten/qgis_ows/qgs/reinigung_inspektion.qgs"
without any rewrites.

Thomas

> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:42 geschrieben:
>
>
> Hi Thomas
>
> Does the WMS url you used in themesConfig.json actually contain the map
> parameter?
>
> Sandro
>
>
> On 28.03.19 09:58, Thomas Schüttenberg wrote:
> > Hi there!
> >
> > I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
> >
> > It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
> >
> > Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
> >
> > For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
> > /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
> >
> > Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
> > http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
> >
> > A GetLegendGraphic however request reads:
> > /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
> >
> > I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
> >
> > Cheers!
> > Thomas
> > _______________________________________________
> > qgis-qwc2 mailing list
> > [hidden email]
> > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Sandro Mani
Hi Thomas

Try with lowercase map.

Sandro


On 28.03.19 14:49, Thomas Schüttenberg wrote:

> Hi Sandro,
>
> yes it does. It is like this
> "http://nt440geo3:90/qgis/qgis_mapserv.fcgi.exe?MAP=D:/GEODaten/qgis_ows/qgs/reinigung_inspektion.qgs"
> without any rewrites.
>
> Thomas
>
>> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:42 geschrieben:
>>
>>
>> Hi Thomas
>>
>> Does the WMS url you used in themesConfig.json actually contain the map
>> parameter?
>>
>> Sandro
>>
>>
>> On 28.03.19 09:58, Thomas Schüttenberg wrote:
>>> Hi there!
>>>
>>> I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
>>>
>>> It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
>>>
>>> Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
>>>
>>> For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
>>> /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
>>>
>>> Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
>>> http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
>>>
>>> A GetLegendGraphic however request reads:
>>> /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
>>>
>>> I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
>>>
>>> Cheers!
>>> Thomas
>>> _______________________________________________
>>> qgis-qwc2 mailing list
>>> [hidden email]
>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
>> _______________________________________________
>> qgis-qwc2 mailing list
>> [hidden email]
>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Thomas Schüttenberg-3
Great, that did it, getmap requests work now, the layers are dispalyed! I don't belive it.

Although, when picking on the map to get a featureinfo the response is still "LayerNotDefined" and the request url caught in the browser does not contain the map.
Also the request url states wms version as "1.3.0" (expected and correct) but the bbox is xmin,ymin,xmax,ymax, which is v1.1.1.

Thanks!
Thomas

 

> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:51 geschrieben:
>
>
> Hi Thomas
>
> Try with lowercase map.
>
> Sandro
>
>
> On 28.03.19 14:49, Thomas Schüttenberg wrote:
> > Hi Sandro,
> >
> > yes it does. It is like this
> > "http://nt440geo3:90/qgis/qgis_mapserv.fcgi.exe?MAP=D:/GEODaten/qgis_ows/qgs/reinigung_inspektion.qgs"
> > without any rewrites.
> >
> > Thomas
> >
> >> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:42 geschrieben:
> >>
> >>
> >> Hi Thomas
> >>
> >> Does the WMS url you used in themesConfig.json actually contain the map
> >> parameter?
> >>
> >> Sandro
> >>
> >>
> >> On 28.03.19 09:58, Thomas Schüttenberg wrote:
> >>> Hi there!
> >>>
> >>> I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
> >>>
> >>> It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
> >>>
> >>> Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
> >>>
> >>> For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
> >>> /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
> >>>
> >>> Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
> >>> http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
> >>>
> >>> A GetLegendGraphic however request reads:
> >>> /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
> >>>
> >>> I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
> >>>
> >>> Cheers!
> >>> Thomas
> >>> _______________________________________________
> >>> qgis-qwc2 mailing list
> >>> [hidden email]
> >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> >> _______________________________________________
> >> qgis-qwc2 mailing list
> >> [hidden email]
> >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > _______________________________________________
> > qgis-qwc2 mailing list
> > [hidden email]
> > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Sandro Mani
Regarding GetFeatureInfo (and GetPrint), I just pushed a fix for that [1].

Concerning the BBOX: do you mean in regard to the axis order? The logic
to adapt the axis order should actually be implemented, see i.e. [2]
among other places.

Sandro

[1]
https://github.com/qgis/qwc2/commit/6b904e7e22d50bfd56cfc1bacb55d1949d2f6c2b
[2] https://github.com/qgis/qwc2/blob/master/utils/IdentifyUtils.js#L24

On 28.03.19 15:23, Thomas Schüttenberg wrote:

> Great, that did it, getmap requests work now, the layers are dispalyed! I don't belive it.
>
> Although, when picking on the map to get a featureinfo the response is still "LayerNotDefined" and the request url caught in the browser does not contain the map.
> Also the request url states wms version as "1.3.0" (expected and correct) but the bbox is xmin,ymin,xmax,ymax, which is v1.1.1.
>
> Thanks!
> Thomas
>
>  
>> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:51 geschrieben:
>>
>>
>> Hi Thomas
>>
>> Try with lowercase map.
>>
>> Sandro
>>
>>
>> On 28.03.19 14:49, Thomas Schüttenberg wrote:
>>> Hi Sandro,
>>>
>>> yes it does. It is like this
>>> "http://nt440geo3:90/qgis/qgis_mapserv.fcgi.exe?MAP=D:/GEODaten/qgis_ows/qgs/reinigung_inspektion.qgs"
>>> without any rewrites.
>>>
>>> Thomas
>>>
>>>> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:42 geschrieben:
>>>>
>>>>
>>>> Hi Thomas
>>>>
>>>> Does the WMS url you used in themesConfig.json actually contain the map
>>>> parameter?
>>>>
>>>> Sandro
>>>>
>>>>
>>>> On 28.03.19 09:58, Thomas Schüttenberg wrote:
>>>>> Hi there!
>>>>>
>>>>> I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
>>>>>
>>>>> It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
>>>>>
>>>>> Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
>>>>>
>>>>> For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
>>>>> /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
>>>>>
>>>>> Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
>>>>> http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
>>>>>
>>>>> A GetLegendGraphic however request reads:
>>>>> /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
>>>>>
>>>>> I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
>>>>>
>>>>> Cheers!
>>>>> Thomas
>>>>> _______________________________________________
>>>>> qgis-qwc2 mailing list
>>>>> [hidden email]
>>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
>>>> _______________________________________________
>>>> qgis-qwc2 mailing list
>>>> [hidden email]
>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
>>> _______________________________________________
>>> qgis-qwc2 mailing list
>>> [hidden email]
>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
>> _______________________________________________
>> qgis-qwc2 mailing list
>> [hidden email]
>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Thomas Schüttenberg-3
Yes, I thougt so, too. But actualy it did not take effect in getfeatureinfo.

Using "map=" instead of "MAP=" fixed this for getmap, although the bbox in the request url is still xmin,ymin,xmax,ymax, so it is adapted.

I also edited "map=" of the url in themesConfig.jason, but after compiling themes.json only in the line "url" it is written in lower case, "legendUrl", "featureInfoUrl" and "printUrl" still have a capital letter "MAP=". ("legendUrl" is not bothered by this, as seen before.) Editing these to lowercase by hand has no effect in QWC, though.

Anyway, I will complie QWC2 again with your fix and see. Does this fix already cover the case sensitiveness of "map=" in the server url or do I have to file an issue?

Thomas



> Sandro Mani <[hidden email]> hat am 28. März 2019 um 15:29 geschrieben:
>
>
> Regarding GetFeatureInfo (and GetPrint), I just pushed a fix for that [1].
>
> Concerning the BBOX: do you mean in regard to the axis order? The logic
> to adapt the axis order should actually be implemented, see i.e. [2]
> among other places.
>
> Sandro
>
> [1]
> https://github.com/qgis/qwc2/commit/6b904e7e22d50bfd56cfc1bacb55d1949d2f6c2b
> [2] https://github.com/qgis/qwc2/blob/master/utils/IdentifyUtils.js#L24
>
> On 28.03.19 15:23, Thomas Schüttenberg wrote:
> > Great, that did it, getmap requests work now, the layers are dispalyed! I don't belive it.
> >
> > Although, when picking on the map to get a featureinfo the response is still "LayerNotDefined" and the request url caught in the browser does not contain the map.
> > Also the request url states wms version as "1.3.0" (expected and correct) but the bbox is xmin,ymin,xmax,ymax, which is v1.1.1.
> >
> > Thanks!
> > Thomas
> >
> >  
> >> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:51 geschrieben:
> >>
> >>
> >> Hi Thomas
> >>
> >> Try with lowercase map.
> >>
> >> Sandro
> >>
> >>
> >> On 28.03.19 14:49, Thomas Schüttenberg wrote:
> >>> Hi Sandro,
> >>>
> >>> yes it does. It is like this
> >>> "http://nt440geo3:90/qgis/qgis_mapserv.fcgi.exe?MAP=D:/GEODaten/qgis_ows/qgs/reinigung_inspektion.qgs"
> >>> without any rewrites.
> >>>
> >>> Thomas
> >>>
> >>>> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:42 geschrieben:
> >>>>
> >>>>
> >>>> Hi Thomas
> >>>>
> >>>> Does the WMS url you used in themesConfig.json actually contain the map
> >>>> parameter?
> >>>>
> >>>> Sandro
> >>>>
> >>>>
> >>>> On 28.03.19 09:58, Thomas Schüttenberg wrote:
> >>>>> Hi there!
> >>>>>
> >>>>> I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
> >>>>>
> >>>>> It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
> >>>>>
> >>>>> Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
> >>>>>
> >>>>> For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
> >>>>> /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
> >>>>>
> >>>>> Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
> >>>>> http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
> >>>>>
> >>>>> A GetLegendGraphic however request reads:
> >>>>> /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
> >>>>>
> >>>>> I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
> >>>>>
> >>>>> Cheers!
> >>>>> Thomas
> >>>>> _______________________________________________
> >>>>> qgis-qwc2 mailing list
> >>>>> [hidden email]
> >>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> >>>> _______________________________________________
> >>>> qgis-qwc2 mailing list
> >>>> [hidden email]
> >>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> >>> _______________________________________________
> >>> qgis-qwc2 mailing list
> >>> [hidden email]
> >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> >> _______________________________________________
> >> qgis-qwc2 mailing list
> >> [hidden email]
> >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > _______________________________________________
> > qgis-qwc2 mailing list
> > [hidden email]
> > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
Reply | Threaded
Open this post in threaded view
|

Re: GetMap request from QWC2 miss map-parameter

Thomas Schüttenberg-3
After re-downloading and re-compiling it now works - in every aspect, great!
Thanks again!
Thomas

> Thomas Schüttenberg <[hidden email]> hat am 28. März 2019 um 16:06 geschrieben:
>
>
> Yes, I thougt so, too. But actualy it did not take effect in getfeatureinfo.
>
> Using "map=" instead of "MAP=" fixed this for getmap, although the bbox in the request url is still xmin,ymin,xmax,ymax, so it is adapted.
>
> I also edited "map=" of the url in themesConfig.jason, but after compiling themes.json only in the line "url" it is written in lower case, "legendUrl", "featureInfoUrl" and "printUrl" still have a capital letter "MAP=". ("legendUrl" is not bothered by this, as seen before.) Editing these to lowercase by hand has no effect in QWC, though.
>
> Anyway, I will complie QWC2 again with your fix and see. Does this fix already cover the case sensitiveness of "map=" in the server url or do I have to file an issue?
>
> Thomas
>
>
>
> > Sandro Mani <[hidden email]> hat am 28. März 2019 um 15:29 geschrieben:
> >
> >
> > Regarding GetFeatureInfo (and GetPrint), I just pushed a fix for that [1].
> >
> > Concerning the BBOX: do you mean in regard to the axis order? The logic
> > to adapt the axis order should actually be implemented, see i.e. [2]
> > among other places.
> >
> > Sandro
> >
> > [1]
> > https://github.com/qgis/qwc2/commit/6b904e7e22d50bfd56cfc1bacb55d1949d2f6c2b
> > [2] https://github.com/qgis/qwc2/blob/master/utils/IdentifyUtils.js#L24
> >
> > On 28.03.19 15:23, Thomas Schüttenberg wrote:
> > > Great, that did it, getmap requests work now, the layers are dispalyed! I don't belive it.
> > >
> > > Although, when picking on the map to get a featureinfo the response is still "LayerNotDefined" and the request url caught in the browser does not contain the map.
> > > Also the request url states wms version as "1.3.0" (expected and correct) but the bbox is xmin,ymin,xmax,ymax, which is v1.1.1.
> > >
> > > Thanks!
> > > Thomas
> > >
> > >  
> > >> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:51 geschrieben:
> > >>
> > >>
> > >> Hi Thomas
> > >>
> > >> Try with lowercase map.
> > >>
> > >> Sandro
> > >>
> > >>
> > >> On 28.03.19 14:49, Thomas Schüttenberg wrote:
> > >>> Hi Sandro,
> > >>>
> > >>> yes it does. It is like this
> > >>> "http://nt440geo3:90/qgis/qgis_mapserv.fcgi.exe?MAP=D:/GEODaten/qgis_ows/qgs/reinigung_inspektion.qgs"
> > >>> without any rewrites.
> > >>>
> > >>> Thomas
> > >>>
> > >>>> Sandro Mani <[hidden email]> hat am 28. März 2019 um 14:42 geschrieben:
> > >>>>
> > >>>>
> > >>>> Hi Thomas
> > >>>>
> > >>>> Does the WMS url you used in themesConfig.json actually contain the map
> > >>>> parameter?
> > >>>>
> > >>>> Sandro
> > >>>>
> > >>>>
> > >>>> On 28.03.19 09:58, Thomas Schüttenberg wrote:
> > >>>>> Hi there!
> > >>>>>
> > >>>>> I happily managed to set up a QGIS server (3.4.5), to compile and deploy the QWC2 (using $ git clone --recursive https://github.com/qgis/qwc2-demo-app.git, so I think it stems from the master branch from three days ago) and to configure my first qwc-theme from a simple .qgs with four PostGIS layers. Everything works: I get the QWC, it displays my theme showing the tools and the background layer and even the legend graphics are displayed. But the qgs-layers do not appear in the map!
> > >>>>>
> > >>>>> It is not a problem of accessibility of QGIS Server or the PostGIS database, because the QGIS Server WMS works e.g. in QGIS Desktop and also simple hand written getmap requests sent from the browser result in the requested image.
> > >>>>>
> > >>>>> Further analyzing the network activity I found that the GetMap requests (and the GetFeatureInfo requests) sent by the QWC miss the MAP= parameter, which results in the (expectable) response: 400 (Bad Request): ServiceException code="LayerNotDefined" Layer "reinigung_erledigt" does not exist.
> > >>>>>
> > >>>>> For example, a GetMap request I get looks like this (picked from the qgis_server.log, the apache access.log or the network panel of the browser's devtools):
> > >>>>> /qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng%3B%20mode%3D8bit&TRANSPARENT=true&LAYERS=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&STYLES=&SRS=EPSG%3A31467&CRS=EPSG%3A31467&TILED=false&DPI=96&OPACITIES=255%2C255%2C255%2C255&WIDTH=966&HEIGHT=1009&BBOX=3487984.106813155%2C5790064.078502184%2C3498734.6512881704%2C5801293.166882401
> > >>>>>
> > >>>>> Interestingly though the referer of this request does show the theme: t=reinigung_inspektion.qgs
> > >>>>> http://nt440geo3:90/?bl=mapnik&st=&l=reinigung_erledigt%2Creinigung_anstehend%2Cinspektion_erledigt%2Cinspektion_anstehend&t=reinigung_inspektion.qgs&e=3487989%2C5790068%2C3498739%2C5801297
> > >>>>>
> > >>>>> A GetLegendGraphic however request reads:
> > >>>>> /qgis/qgis_mapserv.fcgi.exe?MAP=D%3A%2FGEODaten%2Fqgis_ows%2Fqgs%2Freinigung_inspektion.qgs&&SERVICE=WMS&REQUEST=GetLegendGraphic&VERSION=1.3.0&FORMAT=image/png&LAYER=inspektion_anstehend&TYPE=thumbnail
> > >>>>>
> > >>>>> I do not hope so, but this might be a bug if it is not the result of a misconfiguration. The last seems a bit more likely to me, because I am an absolute beginner in QWC2. So, any hint and help appreciated. :-)
> > >>>>>
> > >>>>> Cheers!
> > >>>>> Thomas
> > >>>>> _______________________________________________
> > >>>>> qgis-qwc2 mailing list
> > >>>>> [hidden email]
> > >>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > >>>> _______________________________________________
> > >>>> qgis-qwc2 mailing list
> > >>>> [hidden email]
> > >>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > >>> _______________________________________________
> > >>> qgis-qwc2 mailing list
> > >>> [hidden email]
> > >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > >> _______________________________________________
> > >> qgis-qwc2 mailing list
> > >> [hidden email]
> > >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > > _______________________________________________
> > > qgis-qwc2 mailing list
> > > [hidden email]
> > > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> > _______________________________________________
> > qgis-qwc2 mailing list
> > [hidden email]
> > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
> _______________________________________________
> qgis-qwc2 mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2
_______________________________________________
qgis-qwc2 mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-qwc2