1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverprojectutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
%ModuleHeaderCode
#include "qgsserverprojectutils.h"
%End
namespace QgsServerProjectUtils
{
bool owsServiceCapabilities( const QgsProject &project );
%Docstring
Returns if owsService capabilities are enabled.
:param project: the QGIS project
:return: if owsService capabilities are enabled.
%End
QString owsServiceTitle( const QgsProject &project );
%Docstring
Returns the owsService title defined in project.
:param project: the QGIS project
:return: the owsService title if defined in project with project title
as fallback, "Untitled" otherwise.
%End
QString owsServiceAbstract( const QgsProject &project );
%Docstring
Returns the owsService abstract defined in project.
:param project: the QGIS project
:return: the owsService abstract if defined in project.
%End
QStringList owsServiceKeywords( const QgsProject &project );
%Docstring
Returns the owsService keywords defined in project.
:param project: the QGIS project
:return: the owsService keywords if defined in project.
%End
QString owsServiceOnlineResource( const QgsProject &project );
%Docstring
Returns the owsService online resource defined in project.
:param project: the QGIS project
:return: the owsService online resource if defined in project.
%End
QString owsServiceContactOrganization( const QgsProject &project );
%Docstring
Returns the owsService contact organization defined in project.
:param project: the QGIS project
:return: the owsService contact organization if defined in project.
%End
QString owsServiceContactPosition( const QgsProject &project );
%Docstring
Returns the owsService contact position defined in project.
:param project: the QGIS project
:return: the owsService contact position if defined in project.
%End
QString owsServiceContactPerson( const QgsProject &project );
%Docstring
Returns the owsService contact person defined in project.
:param project: the QGIS project
:return: the owsService contact person if defined in project.
%End
QString owsServiceContactMail( const QgsProject &project );
%Docstring
Returns the owsService contact mail defined in project.
:param project: the QGIS project
:return: the owsService contact mail if defined in project.
%End
QString owsServiceContactPhone( const QgsProject &project );
%Docstring
Returns the owsService contact phone defined in project.
:param project: the QGIS project
:return: the owsService contact phone if defined in project.
%End
QString owsServiceFees( const QgsProject &project );
%Docstring
Returns the owsService fees defined in project.
:param project: the QGIS project
:return: the owsService fees if defined in project.
%End
QString owsServiceAccessConstraints( const QgsProject &project );
%Docstring
Returns the owsService access constraints defined in project.
:param project: the QGIS project
:return: the owsService access constraints if defined in project.
%End
int wmsMaxWidth( const QgsProject &project );
%Docstring
Returns the maximum width for WMS images defined in a QGIS project.
:param project: the QGIS project
:return: width if defined in project, -1 otherwise.
%End
int wmsMaxHeight( const QgsProject &project );
%Docstring
Returns the maximum height for WMS images defined in a QGIS project.
:param project: the QGIS project
:return: height if defined in project, -1 otherwise.
%End
int wmsImageQuality( const QgsProject &project );
%Docstring
Returns the quality for WMS images defined in a QGIS project.
:param project: the QGIS project
:return: quality if defined in project, -1 otherwise.
%End
int wmsTileBuffer( const QgsProject &project );
%Docstring
Returns the tile buffer in pixels for WMS images defined in a QGIS
project.
:param project: the QGIS project
:return: tile buffer if defined in project, 0 otherwise.
.. versionadded:: 3.10
%End
bool wmsRenderMapTiles( const QgsProject &project );
%Docstring
Returns ``True`` if WMS requests should use the
:py:class:`QgsMapSettings`.RenderMapTile flag, so that no visible
artifacts are visible between adjacent tiles.
This flag can slow down rendering considerably, so it is only used if
the corresponding setting is enabled in the project.
:param project: the QGIS project
:return: ``True`` if the flag should be used, or ``False`` if not.
.. versionadded:: 3.18
%End
int wmsMaxAtlasFeatures( const QgsProject &project );
%Docstring
Returns the maximum number of atlas features which can be printed in a
request
:param project: the QGIS project
:return: the number of atlas features
%End
double wmsDefaultMapUnitsPerMm( const QgsProject &project );
%Docstring
Returns the default number of map units per millimeters in case of the
scale is not given
:param project: the QGIS project
:return: the default number of map units per millimeter
.. versionadded:: 3.4
%End
bool wmsUseLayerIds( const QgsProject &project );
%Docstring
Returns if layer ids are used as name in WMS.
:param project: the QGIS project
:return: if layer ids are used as name.
%End
bool wmsInfoFormatSia2045( const QgsProject &project );
%Docstring
Returns if the info format is SIA20145.
:param project: the QGIS project
:return: if the info format is SIA20145.
%End
bool wmsFeatureInfoAddWktGeometry( const QgsProject &project );
%Docstring
Returns if the geometry is displayed as Well Known Text in
GetFeatureInfo request.
:param project: the QGIS project
:return: if the geometry is displayed as Well Known Text in
GetFeatureInfo request.
%End
bool wmsFeatureInfoUseAttributeFormSettings( const QgsProject &project );
%Docstring
Returns if feature form settings should be considered for the format of
the feature info response
:param project: the QGIS project
:return: true if the feature form settings shall be considered for the
feature info response
%End
bool wmsFeatureInfoSegmentizeWktGeometry( const QgsProject &project );
%Docstring
Returns if the geometry has to be segmentize in GetFeatureInfo request.
:param project: the QGIS project
:return: if the geometry has to be segmentize in GetFeatureInfo request.
%End
bool wmsAddLegendGroupsLegendGraphic( const QgsProject &project );
%Docstring
Returns if legend groups should be in the legend graphic response if
GetLegendGraphic is called on a layer group.
:param project: the QGIS project
:return: if the GetLegendGraphic response has to contain legend groups
%End
bool wmsSkipNameForGroup( const QgsProject &project );
%Docstring
Returns if name attribute should be skipped for groups in WMS
capabilities document.
:param project: the QGIS project
:return: if name attribute should be skipped for groups in capabilities
.. versionadded:: 3.36
%End
int wmsFeatureInfoPrecision( const QgsProject &project );
%Docstring
Returns the geometry precision for GetFeatureInfo request.
:param project: the QGIS project
:return: the geometry precision for GetFeatureInfo request.
%End
QString wmsFeatureInfoDocumentElement( const QgsProject &project );
%Docstring
Returns the document element name for XML GetFeatureInfo request.
:param project: the QGIS project
:return: the document element name for XML GetFeatureInfo request.
%End
QString wmsFeatureInfoDocumentElementNs( const QgsProject &project );
%Docstring
Returns the document element namespace for XML GetFeatureInfo request.
:param project: the QGIS project
:return: the document element namespace for XML GetFeatureInfo request.
%End
QString wmsFeatureInfoSchema( const QgsProject &project );
%Docstring
Returns the schema URL for XML GetFeatureInfo request.
:param project: the QGIS project
:return: the schema URL for XML GetFeatureInfo request.
%End
QHash<QString, QString> wmsFeatureInfoLayerAliasMap( const QgsProject &project );
%Docstring
Returns the mapping between layer name and wms layer name for
GetFeatureInfo request.
:param project: the QGIS project
:return: the mapping between layer name and wms layer name for
GetFeatureInfo request.
%End
bool wmsInspireActivate( const QgsProject &project );
%Docstring
Returns if Inspire is activated.
:param project: the QGIS project
:return: if Inspire is activated.
%End
QString wmsInspireLanguage( const QgsProject &project );
%Docstring
Returns the Inspire language.
:param project: the QGIS project
:return: the Inspire language if defined in project.
%End
QString wmsInspireMetadataUrl( const QgsProject &project );
%Docstring
Returns the Inspire metadata URL.
:param project: the QGIS project
:return: the Inspire metadata URL if defined in project.
%End
QString wmsInspireMetadataUrlType( const QgsProject &project );
%Docstring
Returns the Inspire metadata URL type.
:param project: the QGIS project
:return: the Inspire metadata URL type if defined in project.
%End
QString wmsInspireTemporalReference( const QgsProject &project );
%Docstring
Returns the Inspire temporal reference.
:param project: the QGIS project
:return: the Inspire temporal reference if defined in project.
%End
QString wmsInspireMetadataDate( const QgsProject &project );
%Docstring
Returns the Inspire metadata date.
:param project: the QGIS project
:return: the Inspire metadata date if defined in project.
%End
QStringList wmsRestrictedComposers( const QgsProject &project );
%Docstring
Returns the restricted composer list.
:param project: the QGIS project
:return: the restricted composer list if defined in project.
%End
QString wmsServiceUrl( const QgsProject &project, const QgsServerRequest &request = QgsServerRequest(), const QgsServerSettings &settings = QgsServerSettings() );
%Docstring
Returns the WMS service url. The URL defined in the project or if not
defined the URL from serviceUrl.
:param project: the QGIS project
:param request: the request
:param settings: the server settings
:return: url to use for this service
%End
QString wmsRootName( const QgsProject &project );
%Docstring
Returns the WMS root layer name defined in a QGIS project.
:param project: the QGIS project
:return: root layer name to use for this service
%End
QStringList wmsRestrictedLayers( const QgsProject &project );
%Docstring
Returns the restricted layer name list.
:param project: the QGIS project
:return: the restricted layer name list if defined in project.
%End
QStringList wmsOutputCrsList( const QgsProject &project );
%Docstring
Returns the WMS output CRS list.
:param project: the QGIS project
:return: the WMS output CRS list.
%End
QgsRectangle wmsExtent( const QgsProject &project );
%Docstring
Returns the WMS Extent restriction.
:param project: the QGIS project
:return: the WMS Extent restriction.
%End
QString wfsServiceUrl( const QgsProject &project, const QgsServerRequest &request = QgsServerRequest(), const QgsServerSettings &settings = QgsServerSettings() );
%Docstring
Returns the WFS service url. The URL defined in the project or if not
defined the URL from serviceUrl.
:param project: the QGIS project
:param request: the request
:param settings: the server settings
:return: url to use for this service
%End
QStringList wfsLayerIds( const QgsProject &project );
%Docstring
Returns the Layer ids list defined in a QGIS project as published in
WFS.
:param project: the QGIS project
:return: the Layer ids list.
%End
int wfsLayerPrecision( const QgsProject &project, const QString &layerId );
%Docstring
Returns the Layer precision defined in a QGIS project for the WFS
GetFeature.
:param project: the QGIS project
:param layerId: the layer id in the project
:return: the layer precision for WFS GetFeature.
%End
QStringList wfstUpdateLayerIds( const QgsProject &project );
%Docstring
Returns the Layer ids list defined in a QGIS project as published as
WFS-T with update capabilities.
:param project: the QGIS project
:return: the Layer ids list.
%End
QStringList wfstInsertLayerIds( const QgsProject &project );
%Docstring
Returns the Layer ids list defined in a QGIS project as published as
WFS-T with insert capabilities.
:param project: the QGIS project
:return: the Layer ids list.
%End
QStringList wfstDeleteLayerIds( const QgsProject &project );
%Docstring
Returns the Layer ids list defined in a QGIS project as published as
WFS-T with delete capabilities.
:param project: the QGIS project
:return: the Layer ids list.
%End
QString wcsServiceUrl( const QgsProject &project, const QgsServerRequest &request = QgsServerRequest(), const QgsServerSettings &settings = QgsServerSettings() );
%Docstring
Returns the WCS service url. The URL defined in the project or if not
defined the URL from serviceUrl.
:param project: the QGIS project
:param request: the request
:param settings: the server settings
:return: url to use for this service
%End
QStringList wcsLayerIds( const QgsProject &project );
%Docstring
Returns the Layer ids list defined in a QGIS project as published in
WCS.
:param project: the QGIS project
:return: the Layer ids list.
%End
QString wmtsServiceUrl( const QgsProject &project, const QgsServerRequest &request = QgsServerRequest(), const QgsServerSettings &settings = QgsServerSettings() );
%Docstring
Returns the WMTS service url. The URL defined in the project or if not
defined the URL from serviceUrl.
:param project: the QGIS project
:param request: the request
:param settings: the server settings
:return: url to use for this service
.. versionadded:: 3.4
%End
QString serviceUrl( const QString &service, const QgsServerRequest &request, const QgsServerSettings &settings );
%Docstring
Returns the service url defined in the environment variable or with HTTP
header. This is calculated from (in order of precedence):
- Value defined in the project per service
- The ``QGIS_SERVER_<service>_SERVICE_URL`` environment variable
- The ``QGIS_SERVER_SERVICE_URL`` environment variable
- The custom ``X-:py:class:`Qgis`-<service>-Service-Url`` header
- The custom ``X-:py:class:`Qgis`-Service-Url`` header
- Build from the standard ``Forwarded`` header
- Build from the pseudo standard ``X-Forwarded-Host`` and
``X-Forwarded-Proto`` headers
- Build from the standard ``Host`` header and the server protocol
- Build from the server name and the server protocol.
:param request: the request
:param service: the used service
:param settings: the server settings
:return: url to use for this service
.. versionadded:: 3.20
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/server/qgsserverprojectutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|