QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgswfsutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswfsutils.h
3
4 Define WFS service utility functions
5 ------------------------------------
6 begin : December 20 , 2016
7 copyright : (C) 2007 by Marco Hugentobler ( parts from qgswfshandler)
8 (C) 2012 by René-Luc D'Hont ( parts from qgswmshandler)
9 (C) 2014 by Alessandro Pasotti ( parts from qgswfshandler)
10 (C) 2017 by David Marteau
11 email : marco dot hugentobler at karto dot baug dot ethz dot ch
12 a dot pasotti at itopen dot it
13 david dot marteau at 3liz dot com
14 ***************************************************************************/
15
16/***************************************************************************
17 * *
18 * This program is free software; you can redistribute it and/or modify *
19 * it under the terms of the GNU General Public License as published by *
20 * the Free Software Foundation; either version 2 of the License, or *
21 * (at your option) any later version. *
22 * *
23 ***************************************************************************/
24#ifndef QGSWFSUTILS_H
25#define QGSWFSUTILS_H
26
27#include "qgsfeaturerequest.h"
28#include "qgsmodule.h"
29#include "qgsserversettings.h"
31
32class QgsMapLayer;
33
38
40namespace QgsWfs
41{
42
46 QString implementationVersion();
47
51 QString serviceUrl( const QgsServerRequest &request, const QgsProject *project, const QgsServerSettings &settings );
52
56 QgsVectorLayer *layerByTypeName( const QgsProject *project, const QString &typeName );
57
61 QgsFeatureRequest parseFilterElement( const QString &typeName, QDomElement &filterElem, QgsProject *project = nullptr );
62
66 QgsFeatureRequest parseFilterElement( const QString &typeName, QDomElement &filterElem, QStringList &serverFids, const QgsProject *project = nullptr, const QgsMapLayer *layer = nullptr );
67
68 // Define namespaces used in WFS documents
69 const QString WFS_NAMESPACE = QStringLiteral( "http://www.opengis.net/wfs" );
70 const QString GML_NAMESPACE = QStringLiteral( "http://www.opengis.net/gml" );
71 const QString OGC_NAMESPACE = QStringLiteral( "http://www.opengis.net/ogc" );
72 const QString QGS_NAMESPACE = QStringLiteral( "http://www.qgis.org/gml" );
73
74} // namespace QgsWfs
75
76#endif
Base class for all map layer types.
Definition qgsmaplayer.h:80
WMS implementation.
Definition qgswfs.cpp:36
QString implementationVersion()
Returns the highest version supported by this implementation.
QgsVectorLayer * layerByTypeName(const QgsProject *project, const QString &typeName)
Retrieve a layer by typename.
QString serviceUrl(const QgsServerRequest &request, const QgsProject *project, const QgsServerSettings &settings)
Service URL string.
const QString OGC_NAMESPACE
Definition qgswfsutils.h:71
const QString GML_NAMESPACE
Definition qgswfsutils.h:70
const QString WFS_NAMESPACE
Definition qgswfsutils.h:69
const QString QGS_NAMESPACE
Definition qgswfsutils.h:72
QgsFeatureRequest parseFilterElement(const QString &typeName, QDomElement &filterElem, QgsProject *project)
Transform a Filter element to a feature request.