Closed qgib closed 5 years ago
Author Name: Paolo Cavallini (@pcav)
If I understand it correctly, it works here.
Author Name: René-Luc ReLuc (@rldhont)
Can you give us more information :
We propose with LizMap, some examples data in spatialite with relative path and QGIS-Server-master has no problem to find there.
Author Name: aperi2007 - (aperi2007 -)
I create a db spatialite using the spatialite 4.0 or 4.1 after this I convert it to a spatialite 3.0 On a windows 7 64 bit I create a qgis project using a qgis-dev . Using relate path and putting the file spatialite 3.0 and the qgis file project in the same path.
In this configuration it work. After this I send it to a server sending both the qgis prject file and the db file in the cgi-bin folder of the webserver. In the server there is a cgi of a qgis-server compiled from the seme code from GITHub.
When I try to invoke it from my qgis desktop as a layer wms it not respond anything.
If I change manually the path in the qgis project changing it from
dbname='./xxxxx.sqlite'
to
dbname='/home/.../path-tocgi/cgi/xxxxx.sqlite'
It start to respond.
Author Name: René-Luc ReLuc (@rldhont)
Author Name: aperi2007 - (aperi2007 -)
What is the OS of your server ? --> The server OS is RedHat ES6 64 bit.
Do you have the same problem with other vector data file ? --> I don't knowI'm use only spatialites dbfiles. This is the first try to use qgis-server . Usually I use Mapserver.
Do you use MAP parameter in you're WMS request ? --> yes out call is something like: http://www......./cgi-bin/qgis?map=project.qgs
Do you look at the GetCapabilities Response in a Web Browser ? --> I guess yes, because I'm using the qgis desktop from a pc client to test the work of wms service. I know the add layer wms will use the getcapabilities to understand all the layers and the urls.
DO you have the same problem if you move the project in an other directory with the MAP parameter ? --> I will try this early to properly response to this.
Regards.
Author Name: aperi2007 - (aperi2007 -)
I tested using a subfolder as relative path. Still it is not working.
More precisely. I'm able to connect to the qgis-server wms. Also I see the right list of layer and also I'm able to add a layer to the canvas. But I don't see anything as the geometries was fully transparency or null.
Regards.
However this seem to be a problem only of my server . So I guess this ticket could be closed.
Author Name: aperi2007 - (aperi2007 -)
I close the ticket this work correctly on other external system, as reported. So the only possible cause can be an incompatibility between qgis-server (or its spatialite driver) and the RedHat ES 6 64 bit.
However the workaround of absolute path seem to work. So this is not really a big problem for who use qgis-server on redhat.
Author Name: Paolo Cavallini (@pcav)
I confirm here in a Debian box, also for shapefile. The following request works:
while this one does not (returns a white page):
Author Name: Paolo Cavallini (@pcav)
So, relative paths to projects are not supported as for now.
Author Name: aperi2007 - (aperi2007 -) Original Redmine Issue: 8027 Affected QGIS version: master Redmine category:qgis_server
As reported: Using a relative path and putting the db spatialite in the same folder where is the project. The qgis-server don't find the db spatialite.
It work only if the path is absolute.
I don't know if this was an older and always existent bug. Bug surely if a bad bug because in a server the absolute path is not so easy to extablish.
So I put it as a blocker bug.