Hi Rosa, Alessandro Thanks for your suggestions. I will go read the docs and see what I can output.
Regards, Harrissou Le jeu. 21 avr. 2022 à 10:10, Alessandro Pasotti <[email protected]> a écrit : > Hi, > > 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. > > 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. > > 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. > > 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. > > Cheers > > > On Thu, Apr 21, 2022 at 9:53 AM Aguilar Bolivar, Rosa (UT-ITC) via > QGIS-Developer <[email protected]> wrote: > >> Hi, Harrisou >> >> You could try the catalog ( >> https://docs.qgis.org/3.22/en/docs/server_manual/catalog.html) to >> explore your projects. >> 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. >> >> Best regards, >> >> Rosa >> >> >> >> -----Original Message----- >> From: Qgis-user <[email protected]> On Behalf Of Richard >> Duivenvoorde via Qgis-user >> Sent: Wednesday, April 20, 2022 8:24 PM >> To: Harrissou s. <[email protected]>; [email protected]; >> [email protected] >> Subject: Re: [Qgis-user] [QGIS-Developer] Questions of a newbie starting >> with QGIS Server >> >> Hi Harrissou, >> >> I think your pretty close :-) >> >> Some remarks from the times I installed on Windows: >> - I used a vanilla apache installer from https://www.apachelounge.com/ >> - indeed used the httpd.conf from osgeo4w to set all paths and env vars, >> VERY convenient >> - are you sure the Qt vs qt is an issue? Thought Windows paths were not >> case sensitive? >> >> 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? >> >> When you have a WMS/WFS server running normally you do not have a web app >> yet. >> 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. >> >> Alessandro also created a landing page for WFS3/OGC API: >> https://docs.qgis.org/3.22/en/docs/server_manual/services/ogcapif.html >> but I found that sometimes tricky to setup... >> >> Maybe others can share more info/experience >> >> Regards, >> >> Richard Duivenvoorde >> >> >> >> >> On 4/20/22 18:58, Harrissou s. via QGIS-Developer wrote: >> > Hi QGISers (sorry for cross-posting) >> > >> > I'm trying to setup a QGIS Server... on Windows and I'd like to share >> > some suggestions/issues I faced in the process and ultimately ask for >> > help on a bigger issue. >> > I'm following the QGIS documentation instructions [0] and took the >> > opportunity to update the docs[1][2], given that osgeo4w provides >> > means to install apache. Review welcome, thanks. >> > >> > In the docs, it is suggested to add at the end of the httpd.conf file >> > a set of variables. But I notice that *most* of them are already set >> > in the httpd_qgis.conf file that is #included at the end of the >> > httpd.conf file. I hence ignored the addition but, Questions: >> > - are the GDAL_DATA and QGIS_AUTH_DB_DIR_PATH necessary for any purpose? >> > - If so, for what? And is it possible (does it make sense) to add them >> > to the httpd_qgis.conf file also? >> > >> > - Issue report: I think there is a typo in the httpd_qgis.conf file >> > setting PATH and QT_PLUGIN_PATH. It mentions apps/qt5/ while it should >> > be apps/Qt5/ (uppercase Q). >> > >> > In my process, I didn't set the gdal or db paths above, I fixed the >> > uppercase typo and when I tested I could get a reply for >> > 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! >> > Well, this is where I got lost. I thought the request would output in >> > the browser some image i could zoom in, pan, maybe identify... But NO, >> > I got a plain, static image. What am I supposed to do next? How can I >> > make my project queryable, zoomable, pannable, anythingable... in a web >> browser? >> > I might have overlooked, but the docs does not seem t provide any >> > information for newbies like me, for the next step. Where should I >> > look now? Your help to get out of this trouble would be much >> appreciated. Thanks. >> > >> > Regards, >> > Harrissou >> > >> > [0] >> > https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html# >> > installation-on-windows >> > <https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html >> > #installation-on-windows> >> > [1] reading: >> > https://github.com/DelazJ/QGIS-Documentation/blob/installQGISServerWin >> > dows/docs/server_manual/getting_started.rst >> > <https://github.com/DelazJ/QGIS-Documentation/blob/installQGISServerWi >> > ndows/docs/server_manual/getting_started.rst> >> > [2] pull-request: https://github.com/qgis/QGIS-Documentation/pull/7508 >> > <https://github.com/qgis/QGIS-Documentation/pull/7508> >> > >> > _______________________________________________ >> > QGIS-Developer mailing list >> > [email protected] >> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> >> _______________________________________________ >> Qgis-user mailing list >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >> _______________________________________________ >> QGIS-Developer mailing list >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> > > > -- > Alessandro Pasotti > QCooperative: www.qcooperative.net > ItOpen: www.itopen.it >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
