0

How do one set the path to the published projects in QGIS Server as a variable? The official documentation states that one can set the MAP parameter to a default project file but what I really want to achieve is setting just the path to its folder.

In the below example taken from the documentation that would mean that I can avoid exposing the part of the MAP parameter saying /home/user/qgis-server-tutorial-data-master/ and just use the world.qgs part.

Is that posible? (For reference I use QGIS Server 3.2 on Windows Server 2012 with IIS as a web server.)

http://localhost/qgisserver?  
MAP=/home/user/qgis-server-tutorial-data-master/world.qgs&  
LAYERS=countries&
SERVICE=WMS&
REQUEST=GetMap&
CRS=EPSG:4326&  
WIDTH=400&
HEIGHT=200

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.