[Qgis-user] Qgis-server bullseye (stable) and sid (unstable) give blank (white) page on GetMap for all test sites

Mats Bjerin mbj at cparta.se
Sun May 7 10:56:21 PDT 2023


Hi,

I am trying to use a docker image of qgis-server as defined in the official documentation chapter “8. Containerized deployment”.
https://lists.osgeo.org/mailman/options/qgis-user

I have added the required nginx server and I can run the GetCapabilities test successfully:
http://localhost:8080/qgis-server/?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

I then get a complete xml spec of the server capabilities and some basic info on the default map (osm.qgs).

<WMS_Capabilities xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:qgs=http://www.qgis.org/wms xmlns:sld=http://www.opengis.net/sld xmlns=http://www.opengis.net/wms xsi:schemaLocation=http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http://localhost:8080/qgis-server/?SERVICE=WMS&REQUEST=GetSchemaExtension<http://www.opengis.net/wms%20http:/schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd%20http:/www.opengis.net/sld%20http:/schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd%20http:/www.qgis.org/wms%20http:/localhost:8080/qgis-server/?SERVICE=WMS&REQUEST=GetSchemaExtension> version="1.3.0">
<Service>
<Name>WMS</Name>
<Title>Untitled</Title>
<KeywordList>
<Keyword vocabulary="ISO">infoMapAccessService</Keyword>
</KeywordList>
<OnlineResource xmlns:xlink=http://www.w3.org/1999/xlink xlink:href=http://localhost:8080/qgis-server/ xlink:type="simple"/>
<Fees>conditions unknown</Fees>
<AccessConstraints>None</AccessConstraints>
</Service>
… and so on …

I have added the file osm.qgs and also the test sample world.qgs and its associated SQLite database from (https://github.com/qgis/QGIS-Training-Data/tree/master/exercise_data/qgis-server-tutorial-data) to the external folder ~/data that is mounted as /data inside the container.

If I enter the running container, I can see the files owned by the qgis user in the /data folder.

If I try the osm.qgs map in my Chrome Browser with this call:
http://localhost:8080/qgis-server/?MAP=/data/osm.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:3857&WIDTH=400&HEIGHT=200&BBOX=-90,-180,90,180,
I get a blank page in return on the web page.
I had expected the Open Street Map base map to show up as a result of the call.

If I try the world.qgs map in my Chrome Browser, with the suggested call:
http://localhost:8080/qgis-server/?MAP=/data/world.qgs&LAYERS=countries&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=400&HEIGHT=200&BBOX=-90,-180,90,180
I get the reply that the layer “countries” does not exist.
I had expected the simple demo map in return on the web page.

Has anyone managed to make this run?
What might I be missing?

Many thanks in advance for your advice!

Best,
/Mats B.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230507/72c51ebd/attachment.htm>


More information about the QGIS-User mailing list