/
qgswfsprojectparser.h
70 lines (54 loc) · 2.5 KB
/
qgswfsprojectparser.h
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
/***************************************************************************
qgswfsprojectparser.h
---------------------
begin : March 25, 2014
copyright : (C) 2014 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSWFSPROJECTPARSER_H
#define QGSWFSPROJECTPARSER_H
#include "qgsserverprojectparser.h"
#ifdef HAVE_SERVER_PYTHON_PLUGINS
class QgsAccessControl;
#endif
class SERVER_EXPORT QgsWFSProjectParser
{
public:
QgsWFSProjectParser(
const QString& filePath
#ifdef HAVE_SERVER_PYTHON_PLUGINS
, const QgsAccessControl* ac
#endif
);
~QgsWFSProjectParser();
QRegExp getCleanTagNameRegExp() const { return mCleanTagNameRegExp; }
void serviceCapabilities( QDomElement& parentElement, QDomDocument& doc ) const;
QString serviceUrl() const;
QString wfsServiceUrl() const;
void featureTypeList( QDomElement& parentElement, QDomDocument& doc ) const;
void describeFeatureType( const QString& aTypeName, QDomElement& parentElement, QDomDocument& doc ) const;
QStringList wfsLayers() const;
QSet<QString> wfsLayerSet() const;
int wfsLayerPrecision( const QString& aLayerId ) const;
QList<QgsMapLayer*> mapLayerFromTypeName( const QString& aTypeName, bool useCache = true ) const;
QSet<QString> wfstUpdateLayers() const;
QSet<QString> wfstInsertLayers() const;
QSet<QString> wfstDeleteLayers() const;
private:
QgsServerProjectParser* mProjectParser;
QRegExp mCleanTagNameRegExp;
#ifdef HAVE_SERVER_PYTHON_PLUGINS
const QgsAccessControl* mAccessControl;
#endif
QgsWFSProjectParser( const QgsWFSProjectParser& rh );
QgsWFSProjectParser& operator=( const QgsWFSProjectParser& rh );
};
#endif // QGSWFSPROJECTPARSER_H