QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
server
services
wfs
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
"
30
#include "
qgswfsserviceexception.h
"
31
32
#include <QString>
33
34
using namespace
Qt::StringLiterals;
35
36
class
QgsMapLayer
;
37
42
44
namespace
QgsWfs
45
{
46
50
QString
implementationVersion
();
51
55
QString
serviceUrl
(
const
QgsServerRequest &request,
const
QgsProject *project,
const
QgsServerSettings &settings );
56
60
QgsVectorLayer *
layerByTypeName
(
const
QgsProject *project,
const
QString &typeName );
61
65
QgsFeatureRequest
parseFilterElement
(
const
QString &typeName, QDomElement &filterElem, QgsProject *project =
nullptr
);
66
70
QgsFeatureRequest
parseFilterElement
(
const
QString &typeName, QDomElement &filterElem, QStringList &serverFids,
const
QgsProject *project =
nullptr
,
const
QgsMapLayer *layer =
nullptr
);
71
72
// Define namespaces used in WFS documents
73
const
QString
WFS_NAMESPACE
= u
"http://www.opengis.net/wfs"
_s;
74
const
QString
GML_NAMESPACE
= u
"http://www.opengis.net/gml"
_s;
75
const
QString
OGC_NAMESPACE
= u
"http://www.opengis.net/ogc"
_s;
76
const
QString
QGS_NAMESPACE
= u
"http://www.qgis.org/gml"
_s;
77
78
}
// namespace QgsWfs
79
80
#endif
QgsMapLayer
Base class for all map layer types.
Definition
qgsmaplayer.h:83
QgsWfs
WMS implementation.
Definition
qgswfs.cpp:39
QgsWfs::implementationVersion
QString implementationVersion()
Returns the highest version supported by this implementation.
Definition
qgswfsutils.cpp:36
QgsWfs::layerByTypeName
QgsVectorLayer * layerByTypeName(const QgsProject *project, const QString &typeName)
Retrieve a layer by typename.
Definition
qgswfsutils.cpp:71
QgsWfs::serviceUrl
QString serviceUrl(const QgsServerRequest &request, const QgsProject *project, const QgsServerSettings &settings)
Service URL string.
Definition
qgswfsutils.cpp:41
QgsWfs::OGC_NAMESPACE
const QString OGC_NAMESPACE
Definition
qgswfsutils.h:75
QgsWfs::GML_NAMESPACE
const QString GML_NAMESPACE
Definition
qgswfsutils.h:74
QgsWfs::WFS_NAMESPACE
const QString WFS_NAMESPACE
Definition
qgswfsutils.h:73
QgsWfs::QGS_NAMESPACE
const QString QGS_NAMESPACE
Definition
qgswfsutils.h:76
QgsWfs::parseFilterElement
QgsFeatureRequest parseFilterElement(const QString &typeName, QDomElement &filterElem, QgsProject *project)
Transform a Filter element to a feature request.
Definition
qgswfsutils.cpp:94
qgsfeaturerequest.h
qgsmodule.h
qgsserversettings.h
qgswfsserviceexception.h
Generated on
for QGIS API Documentation by
1.17.0