This section describes concepts and parameters mutually shared by services. Some of these are standard and defined in OGC specifications while others are very specific to QGIS Server.
Name of the service
Name of the request
QGIS project file
File name of the downloaded file
Short name definition
This standard parameter allows to specify the name of the service to use
for a specific request and has to be formed like
URL example for the WMS service:
http://localhost/qgisserver? SERVICE=WMS &...
This standard parameter allows to specify the name of the request to execute
for a specific service and has to be formed like
URL example for the GetCapabilities request:
http://localhost/qgisserver? REQUEST=GetCapabilities &...
This vendor parameter allows to define the QGIS project file to use. It may be
an absolute path or a path relative to the location of the server executable
MAP is mandatory by default because a request
needs a QGIS project to actually work. However, the QGIS_PROJECT_FILE
environment variable may be used to define a default QGIS project. In this
MAP is no longer a required parameter. For further
information you may refer to the Advanced configuration chapter.
http://localhost/qgisserver? MAP=/tmp/QGIS-Training-Data/exercise_data/qgis-server-tutorial-data/world.qgs &...
If this vendor parameter is set, the server response will be sent to the client as a file attachment with the specified file name.
URL example to save an XML GetCapabilities document:
http://localhost/qgisserver? SERVICE=WMS &REQUEST=GetCapabilities &FILE_FORMAT=wms_capabilities.xml &...
3.1.5. Short name
A number of elements have both a short name and a title. The short name is a text string used for machine-to-machine communication while the title is for the benefit of humans. For example, a dataset might have the descriptive title “Maximum Atmospheric Temperature” and be requested using the abbreviated short name “ATMAX”. You can set title, short name and abstract for:
Layers: right-click on a layer and choose.
Groups: right-click on a group and select Set Group WMS data
Project: go to.
Thus, the short name may be used to identify these items when interacting with
QGIS Server. For example with the standard
http://localhost/qgisserver? SERVICE=WMS &REQUEST=GetMap &LAYERS=shortname1,shortname2 &...