3liz / py-qgis-server

QGIS embbeded WMS/WFS/WCS asynchronous scalable http server
https://docs.3liz.org/py-qgis-server
Mozilla Public License 2.0
68 stars 16 forks source link

Project's data in subfolder #24

Closed fisholo closed 3 years ago

fisholo commented 3 years ago

Hi all and thanks for sharing tons of code! I have this issue: no problem to server projects with data (gpkg) at the same level of project file, but when I create a subfolder with data inside no layers are rendered (nor in WMS or in WFS).

Where am I wrong?

Many thanks (in advance)

Fabrizio

fisholo commented 3 years ago

-- OK when -- project.qgs test.gpkg

-- KO when -- project.qgs |vectors __|__test.gpkg

dmarteau commented 3 years ago

The path of your layers in the project.qgs must reference the correct relative path of the data, i.e he relative path of the data files must be the same as when you have created the project in Qgis desktop.

rldhont commented 3 years ago

Also Geopackages need to be an editable directory. OGR will create .wall and .shm files in the geopackage's directory.

dmarteau commented 3 years ago

Please read the note about geopackages: https://github.com/3liz/py-qgis-server/tree/master/docker#notes

fisholo commented 3 years ago

Many thanks to @rldhont and @dmarteau! It was an issue related to folder permissions! bye