QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
20 #ifndef QGSSERVERSETTINGS_H
21 #define QGSSERVERSETTINGS_H
27 #include "qgis_server.h"
73 QGIS_SERVER_LANDING_PAGE_PROJECTS_PG_CONNECTIONS
112 bool load(
const QString &envVarName );
117 void logSummary()
const;
123 QString iniFile()
const;
129 bool parallelRendering()
const;
135 int maxThreads()
const;
141 int maxCacheLayers()
const;
153 QString projectFile()
const;
159 QString logFile()
const;
166 bool logStderr()
const;
172 qint64 cacheSize()
const;
178 QString cacheDirectory()
const;
185 QString overrideSystemLocale()
const;
192 bool showGroupSeparator()
const;
214 QString landingPageProjectsDirectories()
const;
222 QString landingPageProjectsPgConnections()
const;
232 QString apiResourcesDirectory()
const;
242 qlonglong apiWfs3MaxLimit()
const;
253 bool ignoreBadLayers()
const;
263 bool trustLayerMetadata()
const;
274 bool getPrintDisabled()
const;
285 QMap<QgsServerSettingsEnv::EnvVar, QString> getEnv()
const;
286 void loadQSettings(
const QString &envOptPath )
const;
287 void prioritize(
const QMap<QgsServerSettingsEnv::EnvVar, QString> &env );
289 QMap< QgsServerSettingsEnv::EnvVar, Setting > mSettings;
@ QGIS_SERVER_CACHE_DIRECTORY
Source
Source of the parameter used in the configuration.
@ QGIS_SERVER_DISABLE_GETPRINT
Disabled WMS GetPrint request and don't load layouts. Improves project read time. (since QGIS 3....
Provides some enum describing the environment currently supported for configuration.
Provides a way to retrieve settings by prioritizing according to environment variables,...
SERVER_EXPORT int wmsMaxHeight(const QgsProject &project)
Returns the maximum height for WMS images defined in a QGIS project.
@ QGIS_SERVER_TRUST_LAYER_METADATA
Trust layer metadata. Improves project read time. (since QGIS 3.16).
@ QGIS_SERVER_PARALLEL_RENDERING
@ QGIS_SERVER_WMS_MAX_HEIGHT
Maximum height for a WMS request. The most conservative between this and the project one is used (sin...
@ QGIS_SERVER_API_RESOURCES_DIRECTORY
Base directory where HTML templates and static assets (e.g. images, js and css files) are searched fo...
@ QGIS_SERVER_API_WFS3_MAX_LIMIT
Maximum value for "limit" in a features request, defaults to 10000 (since QGIS 3.10).
SERVER_EXPORT int wmsMaxWidth(const QgsProject &project)
Returns the maximum width for WMS images defined in a QGIS project.
@ QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE
Override system locale (since QGIS 3.8)
@ QGIS_SERVER_MAX_THREADS
MessageLevel
Level for messages This will be used both for message log and message bar in application.
@ QGIS_SERVER_LANDING_PAGE_PROJECTS_DIRECTORIES
Directories used by the landing page service to find .qgs and .qgz projects (since QGIS 3....
@ QGIS_SERVER_WMS_MAX_WIDTH
Maximum width for a WMS request. The most conservative between this and the project one is used (sinc...
EnvVar
Environment variables to configure the server.
@ QGIS_SERVER_IGNORE_BAD_LAYERS
Do not consider the whole project unavailable if it contains bad layers.
QgsServerSettingsEnv::EnvVar envVar
@ QGIS_SERVER_SHOW_GROUP_SEPARATOR
Show group (thousands) separator when formatting numeric values, defaults to false (since QGIS 3....
QgsServerSettingsEnv::Source src