-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul
committed
Jun 21, 2021
1 parent
4579eae
commit 6c8a51a
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: HOWTO QGIS server | ||
--- | ||
|
||
# HOWTO QGIS server | ||
|
||
QGIS server is configured through QGIS Desktop. The project file generated with QGIS is then uploaded to the server (along with any data to serve). | ||
|
||
- Start a new project in QGIS, or update an existing. | ||
- Add the relevant layers to the project. For file based data, place the files in (or under) the folder where the project is stored, else QGIS may generate unresolvable paths in the project file. | ||
- If you want to use a database layer, upload any data to the remote PostGreSQL. Connect your local QGIS to the remote database and add the PostGreSQL tables as layers to the project. | ||
- Go to Project Properties, open the QGIS Server tab, fill in relevant fields. Make sure to check the "publish" checkbox in the WFS section, else no collections will be available. | ||
- Save the project as .qgs file (not .qgz) and push it to Github with all related files. | ||
- The project should be called project.qgs. Alternatively you can set an environment variable | ||
|
||
``` | ||
QGIS_PROJECT_FILE:/etc/qgisserver/my-new-project.qgs | ||
``` | ||
|
||
- Test your service via https://apitestbed.geonovum.nl/qgis/wfs3 | ||
|
||
|
||
|