<div dir="ltr"><div>Hi Rosa, Alessandro</div><div><br></div><div>Thanks for your suggestions. I will go read the docs and see what I can output.</div><div><br></div><div>Regards,</div><div>Harrissou<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 21 avr. 2022 à 10:10, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>As Richard mentioned, the old XML-based OGC WMS/WFS/WCS & C. protocols are plain API protocols and do not provide a full browseable website, they were designed for machine2machine communications.</div><div><br></div><div>OAPIF (AKA WFS3) provides a full website though, but the protocol mandates URL rewriting, which means that it won't work out of the box unless you configure your web server to transform an URL to instruct QGIS server which QGIS project you want to actually serve.</div><div><br></div><div>The other option, as Rosa suggestd is to use the new QGIS server catalog, is also requires rewrite of the URL but a much simpler one because the catalog itself takes care of creating rewrite rules for all the QGIS projects that are listed in one of more directories or DB connections for QGIS projects stored into a PG DB.</div><div><br></div><div>I'm not sure about windows, but you might also have a look at the standalone development server, it integrates a web server and it is supposed to work out of the box with (almost) zero configuration.<br></div><div><br></div><div>Cheers<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 21, 2022 at 9:53 AM Aguilar Bolivar, Rosa (UT-ITC) via QGIS-Developer <<a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi, Harrisou<br>
<br>
You could try the catalog (<a href="https://docs.qgis.org/3.22/en/docs/server_manual/catalog.html" rel="noreferrer" target="_blank">https://docs.qgis.org/3.22/en/docs/server_manual/catalog.html</a>) to explore your projects.<br>
I also used to the catalog to check the configuration of my projects, e.g., that the server had access to the sources (DB), etc.<br>
<br>
Best regards,<br>
<br>
Rosa<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Qgis-user <<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>> On Behalf Of Richard Duivenvoorde via Qgis-user<br>
Sent: Wednesday, April 20, 2022 8:24 PM<br>
To: Harrissou s. <<a href="mailto:delazj@gmail.com" target="_blank">delazj@gmail.com</a>>; <a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>; <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a><br>
Subject: Re: [Qgis-user] [QGIS-Developer] Questions of a newbie starting with QGIS Server<br>
<br>
Hi Harrissou,<br>
<br>
I think your pretty close :-)<br>
<br>
Some remarks from the times I installed on Windows:<br>
- I used a vanilla apache installer from <a href="https://www.apachelounge.com/" rel="noreferrer" target="_blank">https://www.apachelounge.com/</a><br>
- indeed used the httpd.conf from osgeo4w to set all paths and env vars, VERY convenient<br>
- are you sure the Qt vs qt is an issue? Thought Windows paths were not case sensitive?<br>
<br>
The GDAL_DATA path you will need when you use for example the ECW or other drivers QGIS_AUTH_DB_DIR_PATH is maybe only needed when you have a project which uses authentication profiles? Others?<br>
<br>
When you have a WMS/WFS server running normally you do not have a web app yet.<br>
You either use the WMS of WFS as datasource in QGIS (or other clients) or you use OpenLayer/Leaflet to create an app in a browser using javascript.<br>
<br>
Alessandro also created a landing page for WFS3/OGC API:<br>
<a href="https://docs.qgis.org/3.22/en/docs/server_manual/services/ogcapif.html" rel="noreferrer" target="_blank">https://docs.qgis.org/3.22/en/docs/server_manual/services/ogcapif.html</a><br>
but I found that sometimes tricky to setup...<br>
<br>
Maybe others can share more info/experience<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
<br>
<br>
<br>
On 4/20/22 18:58, Harrissou s. via QGIS-Developer wrote:<br>
> Hi QGISers (sorry for cross-posting)<br>
> <br>
> I'm trying to setup a QGIS Server... on Windows and I'd like to share <br>
> some suggestions/issues I faced in the process and ultimately ask for <br>
> help on a bigger issue.<br>
> I'm following the QGIS documentation instructions [0] and took the <br>
> opportunity to update the docs[1][2], given that osgeo4w provides <br>
> means to install apache. Review welcome, thanks.<br>
> <br>
> In the docs, it is suggested to add at the end of the httpd.conf file <br>
> a set of variables. But I notice that *most* of them are already set <br>
> in the httpd_qgis.conf file that is #included at the end of the <br>
> httpd.conf file. I hence ignored the addition but, Questions:<br>
> - are the GDAL_DATA and QGIS_AUTH_DB_DIR_PATH necessary for any purpose?<br>
> - If so, for what? And is it possible (does it make sense) to add them <br>
> to the httpd_qgis.conf file also?<br>
> <br>
> - Issue report: I think there is a typo in the httpd_qgis.conf file <br>
> setting PATH and QT_PLUGIN_PATH. It mentions apps/qt5/ while it should <br>
> be apps/Qt5/ (uppercase Q).<br>
> <br>
> In my process, I didn't set the gdal or db paths above, I fixed the <br>
> uppercase typo and when I tested I could get a reply for <br>
> GetCapabilities as in the docs. Using the QGIS training project, I could do a GetMap which successfully returned my map canvas image. Good! My server is OP!<br>
> Well, this is where I got lost. I thought the request would output in <br>
> the browser some image i could zoom in, pan, maybe identify... But NO, <br>
> I got a plain, static image. What am I supposed to do next? How can I <br>
> make my project queryable, zoomable, pannable, anythingable... in a web browser?<br>
> I might have overlooked, but the docs does not seem t provide any <br>
> information for newbies like me, for the next step. Where should I <br>
> look now? Your help to get out of this trouble would be much appreciated. Thanks.<br>
> <br>
> Regards,<br>
> Harrissou<br>
> <br>
> [0]<br>
> <a href="https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#" rel="noreferrer" target="_blank">https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#</a><br>
> installation-on-windows <br>
> <<a href="https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html" rel="noreferrer" target="_blank">https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html</a><br>
> #installation-on-windows><br>
> [1] reading:<br>
> <a href="https://github.com/DelazJ/QGIS-Documentation/blob/installQGISServerWin" rel="noreferrer" target="_blank">https://github.com/DelazJ/QGIS-Documentation/blob/installQGISServerWin</a><br>
> dows/docs/server_manual/getting_started.rst <br>
> <<a href="https://github.com/DelazJ/QGIS-Documentation/blob/installQGISServerWi" rel="noreferrer" target="_blank">https://github.com/DelazJ/QGIS-Documentation/blob/installQGISServerWi</a><br>
> ndows/docs/server_manual/getting_started.rst><br>
> [2] pull-request: <a href="https://github.com/qgis/QGIS-Documentation/pull/7508" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS-Documentation/pull/7508</a> <br>
> <<a href="https://github.com/qgis/QGIS-Documentation/pull/7508" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS-Documentation/pull/7508</a>><br>
> <br>
> _______________________________________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>
</blockquote></div>