From bernhard.stroebl at jena.de Mon Mar 4 01:41:10 2019 From: bernhard.stroebl at jena.de (=?UTF-8?Q?Bernhard_Str=c3=b6bl?=) Date: Mon, 4 Mar 2019 10:41:10 +0100 Subject: [qgis-qwc2] Links in identify results Message-ID: Hi, some of my data have links to other pages in dedicated fields. If the field contains only the URL the link is shown in the identify-features window. If the link is embedded in HTML in the field (e.g. show more), it is not shown at all. How can I make my HTML appear? Bernhard __________ Information from ESET Mail Security, version of virus signature database 18968 (20190304) __________ The message was checked by ESET Mail Security. http://www.eset.com From manisandro at gmail.com Mon Mar 4 01:49:02 2019 From: manisandro at gmail.com (Sandro Mani) Date: Mon, 4 Mar 2019 10:49:02 +0100 Subject: [qgis-qwc2] Links in identify results In-Reply-To: References: Message-ID: Hi Bernhard Please post a sample GetFeatureInfo response with such a field. Best Sandro On 04.03.19 10:41, Bernhard Ströbl wrote: > Hi, > > some of my data have links to other pages in dedicated fields. If the > field contains only the URL the link is shown in the identify-features > window. If the link is embedded in HTML in the field (e.g. href="my_url">show more), it is not shown at all. > How can I make my HTML appear? > Bernhard > > > __________ Information from ESET Mail Security, version of virus > signature database 18968 (20190304) __________ > > The message was checked by ESET Mail Security. > http://www.eset.com > > > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From bernhard.stroebl at jena.de Mon Mar 4 02:44:59 2019 From: bernhard.stroebl at jena.de (=?UTF-8?Q?Bernhard_Str=c3=b6bl?=) Date: Mon, 4 Mar 2019 11:44:59 +0100 Subject: [qgis-qwc2] Links in identify results In-Reply-To: References: Message-ID: Hi Sandro, I figured it has nothing to do with the type of link (HTML formatted versus unformatted) but that I have three fields named "Link" in the layer. Renaming them to "Link 1" to "Link 3" solved the problem. sorry for the noise Bernhard __________ Information from ESET Mail Security, version of virus signature database 18969 (20190304) __________ The message was checked by ESET Mail Security. http://www.eset.com From thomas at qgis.de Thu Mar 28 01:58:40 2019 From: thomas at qgis.de (=?UTF-8?Q?Thomas_Sch=C3=BCttenberg?=) Date: Thu, 28 Mar 2019 09:58:40 +0100 (CET) Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter Message-ID: <712602119.70963.1553763520923@office.mailbox.org> 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 From manisandro at gmail.com Thu Mar 28 06:42:27 2019 From: manisandro at gmail.com (Sandro Mani) Date: Thu, 28 Mar 2019 14:42:27 +0100 Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: <712602119.70963.1553763520923@office.mailbox.org> References: <712602119.70963.1553763520923@office.mailbox.org> Message-ID: <89289088-1552-99e6-719a-aca59293219d@gmail.com> 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 > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From thomas at qgis.de Thu Mar 28 06:49:39 2019 From: thomas at qgis.de (=?UTF-8?Q?Thomas_Sch=C3=BCttenberg?=) Date: Thu, 28 Mar 2019 14:49:39 +0100 (CET) Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: <89289088-1552-99e6-719a-aca59293219d@gmail.com> References: <712602119.70963.1553763520923@office.mailbox.org> <89289088-1552-99e6-719a-aca59293219d@gmail.com> Message-ID: <346159929.78779.1553780980687@office.mailbox.org> 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 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 > > qgis-qwc2 at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From manisandro at gmail.com Thu Mar 28 06:51:00 2019 From: manisandro at gmail.com (Sandro Mani) Date: Thu, 28 Mar 2019 14:51:00 +0100 Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: <346159929.78779.1553780980687@office.mailbox.org> References: <712602119.70963.1553763520923@office.mailbox.org> <89289088-1552-99e6-719a-aca59293219d@gmail.com> <346159929.78779.1553780980687@office.mailbox.org> Message-ID: 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 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 >>> qgis-qwc2 at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 >> _______________________________________________ >> qgis-qwc2 mailing list >> qgis-qwc2 at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From thomas at qgis.de Thu Mar 28 07:23:31 2019 From: thomas at qgis.de (=?UTF-8?Q?Thomas_Sch=C3=BCttenberg?=) Date: Thu, 28 Mar 2019 15:23:31 +0100 (CET) Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: References: <712602119.70963.1553763520923@office.mailbox.org> <89289088-1552-99e6-719a-aca59293219d@gmail.com> <346159929.78779.1553780980687@office.mailbox.org> Message-ID: <415455177.79225.1553783011521@office.mailbox.org> 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 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 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 > >>> qgis-qwc2 at lists.osgeo.org > >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > >> _______________________________________________ > >> qgis-qwc2 mailing list > >> qgis-qwc2 at lists.osgeo.org > >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > _______________________________________________ > > qgis-qwc2 mailing list > > qgis-qwc2 at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From manisandro at gmail.com Thu Mar 28 07:29:40 2019 From: manisandro at gmail.com (Sandro Mani) Date: Thu, 28 Mar 2019 15:29:40 +0100 Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: <415455177.79225.1553783011521@office.mailbox.org> References: <712602119.70963.1553763520923@office.mailbox.org> <89289088-1552-99e6-719a-aca59293219d@gmail.com> <346159929.78779.1553780980687@office.mailbox.org> <415455177.79225.1553783011521@office.mailbox.org> Message-ID: <23af6ab3-048c-8e43-506b-03c4b82265d1@gmail.com> 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 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 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 >>>>> qgis-qwc2 at lists.osgeo.org >>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 >>>> _______________________________________________ >>>> qgis-qwc2 mailing list >>>> qgis-qwc2 at lists.osgeo.org >>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 >>> _______________________________________________ >>> qgis-qwc2 mailing list >>> qgis-qwc2 at lists.osgeo.org >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 >> _______________________________________________ >> qgis-qwc2 mailing list >> qgis-qwc2 at lists.osgeo.org >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From thomas at qgis.de Thu Mar 28 08:06:06 2019 From: thomas at qgis.de (=?UTF-8?Q?Thomas_Sch=C3=BCttenberg?=) Date: Thu, 28 Mar 2019 16:06:06 +0100 (CET) Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: <23af6ab3-048c-8e43-506b-03c4b82265d1@gmail.com> References: <712602119.70963.1553763520923@office.mailbox.org> <89289088-1552-99e6-719a-aca59293219d@gmail.com> <346159929.78779.1553780980687@office.mailbox.org> <415455177.79225.1553783011521@office.mailbox.org> <23af6ab3-048c-8e43-506b-03c4b82265d1@gmail.com> Message-ID: <1022971116.79832.1553785566706@office.mailbox.org> 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 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 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 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 > >>>>> qgis-qwc2 at lists.osgeo.org > >>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > >>>> _______________________________________________ > >>>> qgis-qwc2 mailing list > >>>> qgis-qwc2 at lists.osgeo.org > >>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > >>> _______________________________________________ > >>> qgis-qwc2 mailing list > >>> qgis-qwc2 at lists.osgeo.org > >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > >> _______________________________________________ > >> qgis-qwc2 mailing list > >> qgis-qwc2 at lists.osgeo.org > >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > _______________________________________________ > > qgis-qwc2 mailing list > > qgis-qwc2 at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 From thomas at qgis.de Thu Mar 28 08:33:07 2019 From: thomas at qgis.de (=?UTF-8?Q?Thomas_Sch=C3=BCttenberg?=) Date: Thu, 28 Mar 2019 16:33:07 +0100 (CET) Subject: [qgis-qwc2] GetMap request from QWC2 miss map-parameter In-Reply-To: <1022971116.79832.1553785566706@office.mailbox.org> References: <712602119.70963.1553763520923@office.mailbox.org> <89289088-1552-99e6-719a-aca59293219d@gmail.com> <346159929.78779.1553780980687@office.mailbox.org> <415455177.79225.1553783011521@office.mailbox.org> <23af6ab3-048c-8e43-506b-03c4b82265d1@gmail.com> <1022971116.79832.1553785566706@office.mailbox.org> Message-ID: <1473760490.80172.1553787187502@office.mailbox.org> After re-downloading and re-compiling it now works - in every aspect, great! Thanks again! Thomas > Thomas Schüttenberg 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 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 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 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 > > >>>>> qgis-qwc2 at lists.osgeo.org > > >>>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > >>>> _______________________________________________ > > >>>> qgis-qwc2 mailing list > > >>>> qgis-qwc2 at lists.osgeo.org > > >>>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > >>> _______________________________________________ > > >>> qgis-qwc2 mailing list > > >>> qgis-qwc2 at lists.osgeo.org > > >>> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > >> _______________________________________________ > > >> qgis-qwc2 mailing list > > >> qgis-qwc2 at lists.osgeo.org > > >> https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > > _______________________________________________ > > > qgis-qwc2 mailing list > > > qgis-qwc2 at lists.osgeo.org > > > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > > _______________________________________________ > > qgis-qwc2 mailing list > > qgis-qwc2 at lists.osgeo.org > > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2 > _______________________________________________ > qgis-qwc2 mailing list > qgis-qwc2 at lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/qgis-qwc2