[Qgis-user] qgis server does not return any data from WFS

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Wed Nov 25 02:38:41 PST 2015


Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data” (which is the default user for accessing QGIS Server I assume)? Or is that the ‘apache user’ you referred to or did you configure apache to explicitly access through another user than ‘www-data’?

Cheers
Stefan

From: Qgis-user [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Jachym Cepicky
Sent: 25. november 2015 11:28
To: qgis-user at lists.osgeo.org
Subject: [Qgis-user] qgis server does not return any data from WFS

Hi,

several days, I'm fighting QGIS server - on lightttpd now on Apache server with *same* result: WFS GetFeatureType request does not return any data.

I created project, set all necessary metadat, coordinate systems, made sure data are in readable path etc...

I've published the service using qgis_mapserver.fcgi - WMS works (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for GetCapabilitiers, GetFeatureType request returns just the first response element

<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="h .....>

and that's all - not even the closing tag. It seems, the server refuses to work in the middle of construction of the response :-(

I have

            FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
            FcgidInitialEnv QGIS_DEBUG 1
            FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
            FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1


but  /tmp/qgis-server.log is empty (even created)

In the apache error log, only following lines can be found:
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.
ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or /var/www/html/tmp/pokus/vrstva.SHP.


BUT, accessing the file vrstva.shp from http://localhost/tmp/pokus/vrstva.shp works, apache user can read it and, as I already said: WMS GetMap and GetFeatureInfo works

I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache, with old projects as well as completely new with just one line in shapefile - same result all the time.  Ubuntu 15.10 btw.

Any hint?

Thanks

Jachym
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20151125/1d50bf38/attachment.html>


More information about the Qgis-user mailing list