docker-qgis-server
docker-qgis-server copied to clipboard
InvalidCRS Issue
Hi,
we are fiddling with the QGIS-Server 3 container. I have a bunch of database layers (PostGIS), all in EPSG:25832. The projct is in EPSG:25832, too. GetCapabilities lists all layers with their bounding box and tells me that EPSG:25832 is an available CRS for both the project and the individual layers. A GetMap request however returns:
<ServiceExceptionReport version="1.3.0"> <ServiceException code="InvalidCRS">Could not create output CRS</ServiceException></ServiceExceptionReport>
Does the same project work in a different CRS @bstroebl ?
Hi Tim,
yes and no. Choosing EPSG:4326 (in QGIS Desktop 2.18) loads the layer into the project (with legend) but the map is not shown (log shows server replied: Bad Request
). Sending the GetMap request shown in the log directly from the browser returns the InvalidCRS
Service exception.
We could not convince QGIS server to write a log file (QGIS_SERVER_LOG_LEVEL
was set to 0)
Hi @bstroebl
I am having similar but different issues:
- no detailed logs
- no rendering even though I can drag and drop layers from a QGIS Server based WMS connection into QGIS, they don't show up
- project directive is ignored when passed as an environment var.
I am busy investigating these and will push an update when I figure out what the issue is then you can test again with your project too. I'll post an update to this issue when I have some news....
Hi @timlinux
- no detailed logs
same here
- no rendering even though I can drag and drop layers from a QGIS Server based WMS connection into QGIS, they don't show up
same here with EPSG:4326 (legend is shown, though); with EPSG:25832 QGIS shows the following error:
WMS provider Konnte Ausdehnung nicht berechnen
means WMS provider could not calculate the extent
- project directive is ignored when passed as an environment var.
We pass the project as MAP parameter which is working, never tried FcgidInitialEnv QGIS_PROJECT_FILE
I am busy investigating these and will push an update when I figure out what the issue is then you can test again with your project too. I'll post an update to this issue when I have some news....
+1 Bernhard
no detailed logs
I set ENV QGIS_LOG_FILE and QGIS_SERVER_LOG_FILE to explicit files, which resulted in some logging. Not sure why /proc/self/fd/1 does not redirect to STDOUT
no rendering even though I can drag and drop layers from a QGIS Server based WMS connection into QGIS, they don't show up
In the logs there where some lines indicating path/config issues:
[84][12:42:10] Can't open database: unable to open database file
[84][12:42:10] Can't open database: unable to open database file
[84][12:42:10] Can't open database: unable to open database file
[84][12:42:11] Error, could not create output CRS from EPSG
project directive is ignored when passed as an environment var.
As described in #17, I needed to define FcgidInitialEnv QGIS_PROJECT_FILE ${QGIS_PROJECT_FILE}
in qgis.conf