QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsserverprojectutils.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsserverprojectutils.cpp
3  -------------------------
4  begin : December 19, 2016
5  copyright : (C) 2016 by Paul Blottiere
6  email : paul dot blottiere at oslandia dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "qgsserverprojectutils.h"
19 #include "qgsproject.h"
20 
21 double QgsServerProjectUtils::ceilWithPrecision( double number, int places )
22 {
23  double scaleFactor = std::pow( 10.0, places );
24  return ( std::ceil( number * scaleFactor ) / scaleFactor );
25 }
26 
27 double QgsServerProjectUtils::floorWithPrecision( double number, int places )
28 {
29  double scaleFactor = std::pow( 10.0, places );
30  return ( std::floor( number * scaleFactor ) / scaleFactor );
31 }
32 
34 {
35  return project.readBoolEntry( QStringLiteral( "WMSServiceCapabilities" ), QStringLiteral( "/" ), false );
36 }
37 
39 {
40  return project.readEntry( QStringLiteral( "WMSServiceTitle" ), QStringLiteral( "/" ) );
41 }
42 
44 {
45  return project.readEntry( QStringLiteral( "WMSServiceAbstract" ), QStringLiteral( "/" ) );
46 }
47 
49 {
50  QStringList keywordList;
51  QStringList list = project.readListEntry( QStringLiteral( "WMSKeywordList" ), QStringLiteral( "/" ), QStringList() );
52  if ( !list.isEmpty() )
53  {
54  for ( int i = 0; i < list.size(); ++i )
55  {
56  QString keyword = list.at( i );
57  if ( !keyword.isEmpty() )
58  {
59  keywordList.append( keyword );
60  }
61  }
62  }
63  return keywordList;
64 }
65 
67 {
68  QString wmsOnlineResource = project.readEntry( QStringLiteral( "WMSOnlineResource" ), QStringLiteral( "/" ) );
69 
70  QgsProperty wmsOnlineResourceProperty = project.dataDefinedServerProperties().property( QgsProject::DataDefinedServerProperty::WMSOnlineResource );
71  if ( wmsOnlineResourceProperty.isActive() && ! wmsOnlineResourceProperty.expressionString().isEmpty() )
72  {
74  return wmsOnlineResourceProperty.valueAsString( context, wmsOnlineResource );
75  }
76 
77  return wmsOnlineResource;
78 }
79 
81 {
82  return project.readEntry( QStringLiteral( "WMSContactOrganization" ), QStringLiteral( "/" ) );
83 }
84 
86 {
87  return project.readEntry( QStringLiteral( "WMSContactPosition" ), QStringLiteral( "/" ) );
88 }
89 
91 {
92  return project.readEntry( QStringLiteral( "WMSContactPerson" ), QStringLiteral( "/" ) );
93 }
94 
96 {
97  return project.readEntry( QStringLiteral( "WMSContactMail" ), QStringLiteral( "/" ) );
98 }
99 
101 {
102  return project.readEntry( QStringLiteral( "WMSContactPhone" ), QStringLiteral( "/" ) );
103 }
104 
106 {
107  return project.readEntry( QStringLiteral( "WMSFees" ), QStringLiteral( "/" ) );
108 }
109 
111 {
112  return project.readEntry( QStringLiteral( "WMSAccessConstraints" ), QStringLiteral( "/" ) );
113 }
114 
116 {
117  return project.readNumEntry( QStringLiteral( "WMSMaxWidth" ), QStringLiteral( "/" ), -1 );
118 }
119 
121 {
122  return project.readNumEntry( QStringLiteral( "WMSMaxHeight" ), QStringLiteral( "/" ), -1 );
123 }
124 
126 {
127  return project.readBoolEntry( QStringLiteral( "WMSUseLayerIDs" ), QStringLiteral( "/" ), false );
128 }
129 
131 {
132  return project.readNumEntry( QStringLiteral( "WMSImageQuality" ), QStringLiteral( "/" ), -1 );
133 }
134 
136 {
137  return project.readNumEntry( QStringLiteral( "WMSTileBuffer" ), QStringLiteral( "/" ), 0 );
138 }
139 
141 {
142  return project.readNumEntry( QStringLiteral( "WMSMaxAtlasFeatures" ), QStringLiteral( "/" ), 1 );
143 }
144 
146 {
147  return project.readDoubleEntry( QStringLiteral( "WMSDefaultMapUnitsPerMm" ), QStringLiteral( "/" ), 1 );
148 }
149 
151 {
152  QString sia2045 = project.readEntry( QStringLiteral( "WMSInfoFormatSIA2045" ), QStringLiteral( "/" ), "" );
153 
154  return sia2045.compare( QLatin1String( "enabled" ), Qt::CaseInsensitive ) == 0
155  || sia2045.compare( QLatin1String( "true" ), Qt::CaseInsensitive ) == 0;
156 }
157 
159 {
160  QString wktGeom = project.readEntry( QStringLiteral( "WMSAddWktGeometry" ), QStringLiteral( "/" ), "" );
161 
162  return wktGeom.compare( QLatin1String( "enabled" ), Qt::CaseInsensitive ) == 0
163  || wktGeom.compare( QLatin1String( "true" ), Qt::CaseInsensitive ) == 0;
164 }
165 
167 {
168  QString segmGeom = project.readEntry( QStringLiteral( "WMSSegmentizeFeatureInfoGeometry" ), QStringLiteral( "/" ), "" );
169 
170  return segmGeom.compare( QLatin1String( "enabled" ), Qt::CaseInsensitive ) == 0
171  || segmGeom.compare( QLatin1String( "true" ), Qt::CaseInsensitive ) == 0;
172 }
173 
175 {
176  return project.readNumEntry( QStringLiteral( "WMSPrecision" ), QStringLiteral( "/" ), 6 );
177 }
178 
180 {
181  return project.readEntry( QStringLiteral( "WMSFeatureInfoDocumentElement" ), QStringLiteral( "/" ), "" );
182 }
183 
185 {
186  return project.readEntry( QStringLiteral( "WMSFeatureInfoDocumentElementNS" ), QStringLiteral( "/" ), "" );
187 }
188 
190 {
191  return project.readEntry( QStringLiteral( "WMSFeatureInfoSchema" ), QStringLiteral( "/" ), "" );
192 }
193 
194 QHash<QString, QString> QgsServerProjectUtils::wmsFeatureInfoLayerAliasMap( const QgsProject &project )
195 {
196  QHash<QString, QString> aliasMap;
197 
198  //WMSFeatureInfoAliasLayers
199  QStringList aliasLayerStringList = project.readListEntry( QStringLiteral( "WMSFeatureInfoAliasLayers" ), QStringLiteral( "/value" ), QStringList() );
200  if ( aliasLayerStringList.isEmpty() )
201  {
202  return aliasMap;
203  }
204 
205  //WMSFeatureInfoLayerAliases
206  QStringList layerAliasStringList = project.readListEntry( QStringLiteral( "WMSFeatureInfoLayerAliases" ), QStringLiteral( "/value" ), QStringList() );
207  if ( layerAliasStringList.isEmpty() )
208  {
209  return aliasMap;
210  }
211 
212  int nMapEntries = std::min( aliasLayerStringList.size(), layerAliasStringList.size() );
213  for ( int i = 0; i < nMapEntries; ++i )
214  {
215  aliasMap.insert( aliasLayerStringList.at( i ), layerAliasStringList.at( i ) );
216  }
217 
218  return aliasMap;
219 }
220 
222 {
223  return project.readBoolEntry( QStringLiteral( "WMSInspire" ), QStringLiteral( "/activated" ) );
224 }
225 
227 {
228  return project.readEntry( QStringLiteral( "WMSInspire" ), QStringLiteral( "/language" ) );
229 }
230 
232 {
233  return project.readEntry( QStringLiteral( "WMSInspire" ), QStringLiteral( "/metadataUrl" ) );
234 }
235 
237 {
238  return project.readEntry( QStringLiteral( "WMSInspire" ), QStringLiteral( "/metadataUrlType" ) );
239 }
240 
242 {
243  return project.readEntry( QStringLiteral( "WMSInspire" ), QStringLiteral( "/temporalReference" ) );
244 }
245 
247 {
248  return project.readEntry( QStringLiteral( "WMSInspire" ), QStringLiteral( "/metadataDate" ) );
249 }
250 
252 {
253  return project.readListEntry( QStringLiteral( "WMSRestrictedComposers" ), QStringLiteral( "/" ), QStringList() );
254 }
255 
257 {
258  QStringList crsList;
259  QStringList wmsCrsList = project.readListEntry( QStringLiteral( "WMSCrsList" ), QStringLiteral( "/" ), QStringList() );
260  if ( !wmsCrsList.isEmpty() )
261  {
262  for ( int i = 0; i < wmsCrsList.size(); ++i )
263  {
264  QString crs = wmsCrsList.at( i );
265  if ( !crs.isEmpty() )
266  {
267  crsList.append( crs );
268  }
269  }
270  }
271  if ( crsList.isEmpty() )
272  {
273  QStringList valueList = project.readListEntry( QStringLiteral( "WMSEpsgList" ), QStringLiteral( "/" ), QStringList() );
274  bool conversionOk;
275  for ( int i = 0; i < valueList.size(); ++i )
276  {
277  int epsgNr = valueList.at( i ).toInt( &conversionOk );
278  if ( conversionOk )
279  {
280  crsList.append( QStringLiteral( "EPSG:%1" ).arg( epsgNr ) );
281  }
282  }
283  }
284  if ( crsList.isEmpty() )
285  {
286  //no CRS restriction defined in the project. Provide project CRS, wgs84 and pseudo mercator
287  QString projectCrsId = project.crs().authid();
288  crsList.append( projectCrsId );
289  if ( projectCrsId.compare( QLatin1String( "EPSG:4326" ), Qt::CaseInsensitive ) != 0 )
290  {
291  crsList.append( QStringLiteral( "EPSG:%1" ).arg( 4326 ) );
292  }
293  if ( projectCrsId.compare( QLatin1String( "EPSG:3857" ), Qt::CaseInsensitive ) != 0 )
294  {
295  crsList.append( QStringLiteral( "EPSG:%1" ).arg( 3857 ) );
296  }
297  }
298  return crsList;
299 }
300 
302 {
303  return project.readEntry( QStringLiteral( "WMSUrl" ), QStringLiteral( "/" ), "" );
304 }
305 
307 {
308  return project.readEntry( QStringLiteral( "WMSRootName" ), QStringLiteral( "/" ), "" );
309 }
310 
312 {
313  return project.readListEntry( QStringLiteral( "WMSRestrictedLayers" ), QStringLiteral( "/" ), QStringList() );
314 }
315 
317 {
318  bool ok = false;
319  QStringList values = project.readListEntry( QStringLiteral( "WMSExtent" ), QStringLiteral( "/" ), QStringList(), &ok );
320  if ( !ok || values.size() != 4 )
321  {
322  return QgsRectangle();
323  }
324  //order of value elements must be xmin, ymin, xmax, ymax
325  double xmin = values[ 0 ].toDouble();
326  double ymin = values[ 1 ].toDouble();
327  double xmax = values[ 2 ].toDouble();
328  double ymax = values[ 3 ].toDouble();
329  return QgsRectangle( xmin, ymin, xmax, ymax );
330 }
331 
333 {
334  return project.readEntry( QStringLiteral( "WFSUrl" ), QStringLiteral( "/" ), "" );
335 }
336 
337 QStringList QgsServerProjectUtils::wfsLayerIds( const QgsProject &project )
338 {
339  return project.readListEntry( QStringLiteral( "WFSLayers" ), QStringLiteral( "/" ) );
340 }
341 
342 int QgsServerProjectUtils::wfsLayerPrecision( const QgsProject &project, const QString &layerId )
343 {
344  return project.readNumEntry( QStringLiteral( "WFSLayersPrecision" ), "/" + layerId, 6 );
345 }
346 
348 {
349  return project.readListEntry( QStringLiteral( "WFSTLayers" ), QStringLiteral( "Update" ) );
350 }
351 
353 {
354  return project.readListEntry( QStringLiteral( "WFSTLayers" ), QStringLiteral( "Insert" ) );
355 }
356 
358 {
359  return project.readListEntry( QStringLiteral( "WFSTLayers" ), QStringLiteral( "Delete" ) );
360 }
361 
363 {
364  return project.readEntry( QStringLiteral( "WCSUrl" ), QStringLiteral( "/" ), "" );
365 }
366 
367 QStringList QgsServerProjectUtils::wcsLayerIds( const QgsProject &project )
368 {
369  return project.readListEntry( QStringLiteral( "WCSLayers" ), QStringLiteral( "/" ) );
370 }
371 
373 {
374  return project.readEntry( QStringLiteral( "WMTSUrl" ), QStringLiteral( "/" ), "" );
375 }
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition: qgsexpressioncontext.h:370
QgsProperty::isActive
bool isActive() const
Returns whether the property is currently active.
Definition: qgsproperty.cpp:266
QgsServerProjectUtils::wmsMaxAtlasFeatures
SERVER_EXPORT int wmsMaxAtlasFeatures(const QgsProject &project)
Returns the maximum number of atlas features which can be printed in a request.
Definition: qgsserverprojectutils.cpp:140
QgsProperty
A store for object properties.
Definition: qgsproperty.h:232
QgsServerProjectUtils::wmsFeatureInfoDocumentElementNs
SERVER_EXPORT QString wmsFeatureInfoDocumentElementNs(const QgsProject &project)
Returns the document element namespace for XML GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:184
QgsServerProjectUtils::wcsServiceUrl
SERVER_EXPORT QString wcsServiceUrl(const QgsProject &project)
Returns the WCS service url defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:362
QgsServerProjectUtils::wmsFeatureInfoSegmentizeWktGeometry
SERVER_EXPORT bool wmsFeatureInfoSegmentizeWktGeometry(const QgsProject &project)
Returns if the geometry has to be segmentize in GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:166
QgsServerProjectUtils::wmtsServiceUrl
SERVER_EXPORT QString wmtsServiceUrl(const QgsProject &project)
Returns the WMTS service url defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:372
QgsServerProjectUtils::ceilWithPrecision
SERVER_EXPORT double ceilWithPrecision(double number, int places)
Returns a double greater than number to the specified number of places.
Definition: qgsserverprojectutils.cpp:21
crs
const QgsCoordinateReferenceSystem & crs
Definition: qgswfsgetfeature.cpp:51
qgsserverprojectutils.h
QgsServerProjectUtils::wmsFeatureInfoLayerAliasMap
SERVER_EXPORT QHash< QString, QString > wmsFeatureInfoLayerAliasMap(const QgsProject &project)
Returns the mapping between layer name and wms layer name for GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:194
QgsProject::dataDefinedServerProperties
QgsPropertyCollection dataDefinedServerProperties() const
Returns the data defined properties used for overrides in user defined server parameters.
Definition: qgsproject.cpp:621
QgsServerProjectUtils::wmsServiceUrl
SERVER_EXPORT QString wmsServiceUrl(const QgsProject &project)
Returns the WMS service url defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:301
QgsServerProjectUtils::wfstInsertLayerIds
SERVER_EXPORT QStringList wfstInsertLayerIds(const QgsProject &project)
Returns the Layer ids list defined in a QGIS project as published as WFS-T with insert capabilities.
Definition: qgsserverprojectutils.cpp:352
QgsProject::readEntry
QString readEntry(const QString &scope, const QString &key, const QString &def=QString(), bool *ok=nullptr) const
Reads a string from the specified scope and key.
Definition: qgsproject.cpp:2526
QgsProject::readBoolEntry
bool readBoolEntry(const QString &scope, const QString &key, bool def=false, bool *ok=nullptr) const
Reads a boolean from the specified scope and key.
Definition: qgsproject.cpp:2601
QgsRectangle
A rectangle specified with double values.
Definition: qgsrectangle.h:42
QgsServerProjectUtils::wcsLayerIds
SERVER_EXPORT QStringList wcsLayerIds(const QgsProject &project)
Returns the Layer ids list defined in a QGIS project as published in WCS.
Definition: qgsserverprojectutils.cpp:367
QgsServerProjectUtils::owsServiceContactPosition
SERVER_EXPORT QString owsServiceContactPosition(const QgsProject &project)
Returns the owsService contact position defined in project.
Definition: qgsserverprojectutils.cpp:85
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition: qgsproject.h:95
QgsPropertyCollection::property
QgsProperty property(int key) const override
Returns a matching property from the collection, if one exists.
Definition: qgspropertycollection.cpp:214
QgsProperty::expressionString
QString expressionString() const
Returns the expression used for the property value.
Definition: qgsproperty.cpp:323
QgsServerProjectUtils::wmsInspireTemporalReference
SERVER_EXPORT QString wmsInspireTemporalReference(const QgsProject &project)
Returns the Inspire temporal reference.
Definition: qgsserverprojectutils.cpp:241
QgsServerProjectUtils::wfsServiceUrl
SERVER_EXPORT QString wfsServiceUrl(const QgsProject &project)
Returns the WFS service url defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:332
QgsServerProjectUtils::wmsFeatureInfoDocumentElement
SERVER_EXPORT QString wmsFeatureInfoDocumentElement(const QgsProject &project)
Returns the document element name for XML GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:179
QgsServerProjectUtils::wmsUseLayerIds
SERVER_EXPORT bool wmsUseLayerIds(const QgsProject &project)
Returns if layer ids are used as name in WMS.
Definition: qgsserverprojectutils.cpp:125
QgsServerProjectUtils::wmsInspireMetadataUrl
SERVER_EXPORT QString wmsInspireMetadataUrl(const QgsProject &project)
Returns the Inspire metadata URL.
Definition: qgsserverprojectutils.cpp:231
QgsServerProjectUtils::wmsInspireLanguage
SERVER_EXPORT QString wmsInspireLanguage(const QgsProject &project)
Returns the Inspire language.
Definition: qgsserverprojectutils.cpp:226
QgsServerProjectUtils::wmsOutputCrsList
SERVER_EXPORT QStringList wmsOutputCrsList(const QgsProject &project)
Returns the WMS output CRS list.
Definition: qgsserverprojectutils.cpp:256
QgsServerProjectUtils::wmsFeatureInfoPrecision
SERVER_EXPORT int wmsFeatureInfoPrecision(const QgsProject &project)
Returns the geometry precision for GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:174
QgsServerProjectUtils::wmsMaxHeight
SERVER_EXPORT int wmsMaxHeight(const QgsProject &project)
Returns the maximum height for WMS images defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:120
QgsServerProjectUtils::wfsLayerIds
SERVER_EXPORT QStringList wfsLayerIds(const QgsProject &project)
Returns the Layer ids list defined in a QGIS project as published in WFS.
Definition: qgsserverprojectutils.cpp:337
QgsServerProjectUtils::wfstDeleteLayerIds
SERVER_EXPORT QStringList wfstDeleteLayerIds(const QgsProject &project)
Returns the Layer ids list defined in a QGIS project as published as WFS-T with delete capabilities.
Definition: qgsserverprojectutils.cpp:357
QgsServerProjectUtils::owsServiceContactOrganization
SERVER_EXPORT QString owsServiceContactOrganization(const QgsProject &project)
Returns the owsService contact organization defined in project.
Definition: qgsserverprojectutils.cpp:80
QgsServerProjectUtils::wmsTileBuffer
SERVER_EXPORT int wmsTileBuffer(const QgsProject &project)
Returns the tile buffer in pixels for WMS images defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:135
QgsServerProjectUtils::owsServiceContactMail
SERVER_EXPORT QString owsServiceContactMail(const QgsProject &project)
Returns the owsService contact mail defined in project.
Definition: qgsserverprojectutils.cpp:95
QgsServerProjectUtils::wmsInspireActivate
SERVER_EXPORT bool wmsInspireActivate(const QgsProject &project)
Returns if Inspire is activated.
Definition: qgsserverprojectutils.cpp:221
QgsServerProjectUtils::floorWithPrecision
SERVER_EXPORT double floorWithPrecision(double number, int places)
Returns a double less than number to the specified number of places.
Definition: qgsserverprojectutils.cpp:27
QgsServerProjectUtils::wmsRestrictedLayers
SERVER_EXPORT QStringList wmsRestrictedLayers(const QgsProject &project)
Returns the restricted layer name list.
Definition: qgsserverprojectutils.cpp:311
QgsCoordinateReferenceSystem::authid
QString authid() const
Returns the authority identifier for the CRS.
Definition: qgscoordinatereferencesystem.cpp:1321
QgsServerProjectUtils::wmsFeatureInfoAddWktGeometry
SERVER_EXPORT bool wmsFeatureInfoAddWktGeometry(const QgsProject &project)
Returns if the geometry is displayed as Well Known Text in GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:158
QgsProperty::valueAsString
QString valueAsString(const QgsExpressionContext &context, const QString &defaultString=QString(), bool *ok=nullptr) const
Calculates the current value of the property and interprets it as a string.
Definition: qgsproperty.cpp:570
QgsServerProjectUtils::wmsExtent
SERVER_EXPORT QgsRectangle wmsExtent(const QgsProject &project)
Returns the WMS Extent restriction.
Definition: qgsserverprojectutils.cpp:316
QgsProject::readDoubleEntry
double readDoubleEntry(const QString &scope, const QString &key, double def=0, bool *ok=nullptr) const
Reads a double from the specified scope and key.
Definition: qgsproject.cpp:2579
QgsServerProjectUtils::wfsLayerPrecision
SERVER_EXPORT int wfsLayerPrecision(const QgsProject &project, const QString &layerId)
Returns the Layer precision defined in a QGIS project for the WFS GetFeature.
Definition: qgsserverprojectutils.cpp:342
QgsServerProjectUtils::wmsMaxWidth
SERVER_EXPORT int wmsMaxWidth(const QgsProject &project)
Returns the maximum width for WMS images defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:115
QgsServerProjectUtils::wmsFeatureInfoSchema
SERVER_EXPORT QString wmsFeatureInfoSchema(const QgsProject &project)
Returns the schema URL for XML GetFeatureInfo request.
Definition: qgsserverprojectutils.cpp:189
QgsServerProjectUtils::owsServiceCapabilities
SERVER_EXPORT bool owsServiceCapabilities(const QgsProject &project)
Returns if owsService capabilities are enabled.
Definition: qgsserverprojectutils.cpp:33
QgsServerProjectUtils::wmsRootName
SERVER_EXPORT QString wmsRootName(const QgsProject &project)
Returns the WMS root layer name defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:306
QgsServerProjectUtils::wmsDefaultMapUnitsPerMm
SERVER_EXPORT double wmsDefaultMapUnitsPerMm(const QgsProject &project)
Returns the default number of map units per millimeters in case of the scale is not given.
Definition: qgsserverprojectutils.cpp:145
QgsServerProjectUtils::wmsImageQuality
SERVER_EXPORT int wmsImageQuality(const QgsProject &project)
Returns the quality for WMS images defined in a QGIS project.
Definition: qgsserverprojectutils.cpp:130
QgsServerProjectUtils::owsServiceAccessConstraints
SERVER_EXPORT QString owsServiceAccessConstraints(const QgsProject &project)
Returns the owsService access constraints defined in project.
Definition: qgsserverprojectutils.cpp:110
QgsServerProjectUtils::owsServiceContactPhone
SERVER_EXPORT QString owsServiceContactPhone(const QgsProject &project)
Returns the owsService contact phone defined in project.
Definition: qgsserverprojectutils.cpp:100
QgsProject::createExpressionContext
QgsExpressionContext createExpressionContext() const override
This method needs to be reimplemented in all classes which implement this interface and return an exp...
Definition: qgsproject.cpp:1861
QgsServerProjectUtils::wmsRestrictedComposers
SERVER_EXPORT QStringList wmsRestrictedComposers(const QgsProject &project)
Returns the restricted composer list.
Definition: qgsserverprojectutils.cpp:251
QgsServerProjectUtils::wmsInfoFormatSia2045
SERVER_EXPORT bool wmsInfoFormatSia2045(const QgsProject &project)
Returns if the info format is SIA20145.
Definition: qgsserverprojectutils.cpp:150
QgsProject::readListEntry
QStringList readListEntry(const QString &scope, const QString &key, const QStringList &def=QStringList(), bool *ok=nullptr) const
Reads a string list from the specified scope and key.
Definition: qgsproject.cpp:2496
QgsServerProjectUtils::wfstUpdateLayerIds
SERVER_EXPORT QStringList wfstUpdateLayerIds(const QgsProject &project)
Returns the Layer ids list defined in a QGIS project as published as WFS-T with update capabilities.
Definition: qgsserverprojectutils.cpp:347
QgsServerProjectUtils::wmsInspireMetadataDate
SERVER_EXPORT QString wmsInspireMetadataDate(const QgsProject &project)
Returns the Inspire metadata date.
Definition: qgsserverprojectutils.cpp:246
QgsServerProjectUtils::owsServiceKeywords
SERVER_EXPORT QStringList owsServiceKeywords(const QgsProject &project)
Returns the owsService keywords defined in project.
Definition: qgsserverprojectutils.cpp:48
QgsProject::crs
QgsCoordinateReferenceSystem crs
Definition: qgsproject.h:100
QgsServerProjectUtils::owsServiceFees
SERVER_EXPORT QString owsServiceFees(const QgsProject &project)
Returns the owsService fees defined in project.
Definition: qgsserverprojectutils.cpp:105
QgsServerProjectUtils::owsServiceContactPerson
SERVER_EXPORT QString owsServiceContactPerson(const QgsProject &project)
Returns the owsService contact person defined in project.
Definition: qgsserverprojectutils.cpp:90
qgsproject.h
QgsProject::readNumEntry
int readNumEntry(const QString &scope, const QString &key, int def=0, bool *ok=nullptr) const
Reads an integer from the specified scope and key.
Definition: qgsproject.cpp:2552
QgsServerProjectUtils::wmsInspireMetadataUrlType
SERVER_EXPORT QString wmsInspireMetadataUrlType(const QgsProject &project)
Returns the Inspire metadata URL type.
Definition: qgsserverprojectutils.cpp:236
QgsServerProjectUtils::owsServiceTitle
SERVER_EXPORT QString owsServiceTitle(const QgsProject &project)
Returns the owsService title defined in project.
Definition: qgsserverprojectutils.cpp:38
QgsServerProjectUtils::owsServiceOnlineResource
SERVER_EXPORT QString owsServiceOnlineResource(const QgsProject &project)
Returns the owsService online resource defined in project.
Definition: qgsserverprojectutils.cpp:66
QgsServerProjectUtils::owsServiceAbstract
SERVER_EXPORT QString owsServiceAbstract(const QgsProject &project)
Returns the owsService abstract defined in project.
Definition: qgsserverprojectutils.cpp:43