QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgswfsgetfeature.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswfsgetfeature.h
3 -------------------------
4 begin : December 20 , 2016
5 copyright : (C) 2007 by Marco Hugentobler (original code)
6 (C) 2012 by René-Luc D'Hont (original code)
7 (C) 2014 by Alessandro Pasotti (original code)
8 (C) 2017 by David Marteau
9 email : marco dot hugentobler at karto dot baug dot ethz dot ch
10 a dot pasotti at itopen dot it
11 david dot marteau at 3liz dot com
12 ***************************************************************************/
13
14/***************************************************************************
15 * *
16 * This program is free software; you can redistribute it and/or modify *
17 * it under the terms of the GNU General Public License as published by *
18 * the Free Software Foundation; either version 2 of the License, or *
19 * (at your option) any later version. *
20 * *
21 ***************************************************************************/
22#ifndef QGSWFSGETFEATURE_H
23#define QGSWFSGETFEATURE_H
24
25#include "qgsfeaturerequest.h"
26#include "qgswfsparameters.h"
27
29class QgsProject;
33
34namespace QgsWfs
35{
37 {
38 QString typeName;
39
40 QString srsName;
41
43
44 QStringList serverFids;
45
46 QStringList propertyList;
47 };
48
50 {
52
54
56
57 QList<getFeatureQuery> queries;
58
59 QString geometryName;
60 };
61
65 void parseSortByElement( QDomElement &sortByElem, QgsFeatureRequest &featureRequest, const QString &typeName );
66
70 getFeatureQuery parseQueryElement( QDomElement &queryElem, const QgsProject *project = nullptr );
71
75 getFeatureRequest parseGetFeatureRequestBody( QDomElement &docElem, const QgsProject *project = nullptr );
76
80 getFeatureRequest parseGetFeatureParameters( const QgsProject *project = nullptr );
81
85 void writeGetFeature( QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response );
86
88
89} // namespace QgsWfs
90
91#endif
Represents a coordinate reference system (CRS).
Wraps a request for features to a vector layer (or directly its vector data provider).
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:109
Defines interfaces exposed by QGIS Server and made available to plugins.
Defines requests passed to QgsService classes.
Defines the response interface passed to QgsService.
Provides a way to retrieve settings by prioritizing according to environment variables,...
Format
Output format for the response.
WMS implementation.
Definition qgswfs.cpp:36
QString getSrsNameFromVersion(const QgsCoordinateReferenceSystem &crs)
getFeatureRequest parseGetFeatureRequestBody(QDomElement &docElem, const QgsProject *project)
Transform RequestBody root element to getFeatureRequest.
getFeatureQuery parseQueryElement(QDomElement &queryElem, const QgsProject *project)
Transform Query element to getFeatureQuery.
getFeatureRequest parseGetFeatureParameters(const QgsProject *project)
Transform parameters to getFeatureRequest.
void parseSortByElement(QDomElement &sortByElem, QgsFeatureRequest &featureRequest, const QString &typeName)
Add SortBy element to featureRequest.
void writeGetFeature(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetFeature response.
QgsFeatureRequest featureRequest
QList< getFeatureQuery > queries
QgsWfsParameters::Format outputFormat