@@ -111,12 +111,90 @@ namespace QgsServerProjectUtils
111
111
*/
112
112
int wmsMaxHeight( const QgsProject &project );
113
113
114
+ /** Returns if layer ids are used as name in WMS.
115
+ * \param project the QGIS project
116
+ * \returns if layer ids are used as name.
117
+ */
118
+ bool wmsUseLayerIds( const QgsProject &project );
119
+
120
+ /** Returns if the info format is SIA20145.
121
+ * \param project the QGIS project
122
+ * \returns if the info format is SIA20145.
123
+ */
124
+ bool wmsInfoFormatSIA2045( const QgsProject &project );
125
+
126
+ /** Returns if Inspire is activated.
127
+ * \param project the QGIS project
128
+ * \returns if Inspire is activated.
129
+ */
130
+ bool wmsInspireActivated( const QgsProject &project );
131
+
132
+ /** Returns the Inspire language.
133
+ * \param project the QGIS project
134
+ * \returns the Inspire language if defined in project.
135
+ */
136
+ QString wmsInspireLanguage( const QgsProject &project );
137
+
138
+ /** Returns the Inspire metadata URL.
139
+ * \param project the QGIS project
140
+ * \returns the Inspire metadata URL if defined in project.
141
+ */
142
+ QString wmsInspireMetadataUrl( const QgsProject &project );
143
+
144
+ /** Returns the Inspire metadata URL type.
145
+ * \param project the QGIS project
146
+ * \returns the Inspire metadata URL type if defined in project.
147
+ */
148
+ QString wmsInspireMetadataUrlType( const QgsProject &project );
149
+
150
+ /** Returns the Inspire temporal reference.
151
+ * \param project the QGIS project
152
+ * \returns the Inspire temporal reference if defined in project.
153
+ */
154
+ QString wmsInspireTemporalReference( const QgsProject &project );
155
+
156
+ /** Returns the Inspire metadata date.
157
+ * \param project the QGIS project
158
+ * \returns the Inspire metadata date if defined in project.
159
+ */
160
+ QString wmsInspireMetadataDate( const QgsProject &project );
161
+
162
+ /** Returns the restricted composer list.
163
+ * \param project the QGIS project
164
+ * \returns the restricted composer list if defined in project.
165
+ */
166
+ QStringList wmsRestrictedComposers( const QgsProject &project );
167
+
114
168
/** Returns the WMS ervice url defined in a QGIS project.
115
169
* @param project the QGIS project
116
170
* @return url if defined in project, an empty string otherwise.
117
171
*/
118
172
QString wmsServiceUrl( const QgsProject &project );
119
173
174
+ /** Returns the WMS root layer name defined in a QGIS project.
175
+ * \param project the QGIS project
176
+ * \returns root layer name if defined in project, an empty string otherwise.
177
+ */
178
+ QString wmsRootName( const QgsProject &project );
179
+
180
+ /** Returns the restricted layer name list.
181
+ * \param project the QGIS project
182
+ * \returns the restricted layer name list if defined in project.
183
+ */
184
+ QStringList wmsRestrictedLayers( const QgsProject &project );
185
+
186
+ /** Returns the WMS output CRS list.
187
+ * \param project the QGIS project
188
+ * \returns the WMS output CRS list.
189
+ */
190
+ QStringList wmsOutputCrsList( const QgsProject &project );
191
+
192
+ /** Returns the WMS Extent restriction.
193
+ * \param project the QGIS project
194
+ * \returns the WMS Extent restriction.
195
+ */
196
+ QgsRectangle wmsExtent( const QgsProject &project );
197
+
120
198
/** Returns the WFS service url defined in a QGIS project.
121
199
* @param project the QGIS project
122
200
* @return url if defined in project, an empty string otherwise.
@@ -129,6 +207,14 @@ namespace QgsServerProjectUtils
129
207
*/
130
208
QStringList wfsLayerIds( const QgsProject &project );
131
209
210
+ /** Returns the Layer precision defined in a QGIS project for the WFS GetFeature.
211
+ * @param project the QGIS project
212
+ * @param layerId the layer id in the project
213
+ * @return the layer precision for WFS GetFeature.
214
+ */
215
+
216
+ int wfsLayerPrecision( const QgsProject &project, const QString &layerId );
217
+
132
218
/** Returns the Layer ids list defined in a QGIS project as published as WFS-T with update capabilities.
133
219
* @param project the QGIS project
134
220
* @return the Layer ids list.
0 commit comments