NaturalGIS / qgis_server_and_lizmap_on_windows

Easy install/deploy QGIS Server and Lizmap Web Client on MS Windows
16 stars 10 forks source link

How to access the datasets in QGIS #8

Closed pjduplooy2022 closed 9 months ago

pjduplooy2022 commented 9 months ago

Hi

I would like to inquire of what url I must use to access the datasets in QGIS (WMS/WFS)?

Regards

Pieter

gioman commented 9 months ago

@pjduplooy2022 the URL of the services will be like

http://localhost/qgis/qgis_mapserv.fcgi.exe?map=c:/path/to/project.qgs

where "project.qgs" is a QGIS project file in QGS format, where you have added the layers you want to publish and have configured the project accordingly in

project > properties > QGIS Server

pjduplooy2022 commented 9 months ago

Hi sorry

I mean I would like to see the datasets in QGIS, for instance for the WMS connection, you have to put in an URL. With another Windows install of LIzmap I could use http://localhost/index.php/lizmap/service/?repository=xxx&project=xxx.

What would the first part of that URL be in your deployment?

Pieter

gioman commented 9 months ago

What would the first part of that URL be in your deployment?

http://localhost/lizmap36/lizmap/www/index.php/lizmap/service?repository=***&project=***

pjduplooy2022 commented 9 months ago

Thank you so much!!

Gustry commented 9 months ago

The URL is written when you click "i" button on Lizmap, you have a link.

Side note, but still important :

http://localhost/qgis/qgis_mapserv.fcgi

It mustn't be accessible from a public network if you have a Lizmap installed, as you will be able to bypass all securities, ACL etc provided by Lizmap.

If you a have Lizmap installed, always use URL provided by Lizmap.

pjduplooy2022 commented 9 months ago

This Lizmap is a local install, I am learning the essentials of mapserving to see how the serving of maps work

pjduplooy2022 commented 9 months ago

Another couple of questions.

Will the pgrouting and mapbuilder modules work?

What files need to be changed to run on a different port like 82?

If I want PostGIS support, can I change the profiles.ini.php without any problems?

gioman commented 9 months ago

Will the pgrouting and mapbuilder modules work?

they are not installed.

What files need to be changed to run on a different port like 82?

look at apache config files in

C:\webserver\Apache24\conf

If I want PostGIS support, can I change the profiles.ini.php without any problems?

You don't have to change anything to have postgis support.