QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
qgswfsdescribefeaturetypejson.h
Go to the documentation of this file.
1/***************************************************************************
2 qgswfsdescribefeaturetypejson.h
3 -------------------------------
4 begin : December 09 , 2022
5 copyright : (C) 2022 by David Marteau
6 email : david dot marteau at 3liz dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17#ifndef QGSWFSDESCRIBEFEATURETYPEGEOJSON_H
18#define QGSWFSDESCRIBEFEATURETYPEGEOJSON_H
19
20#include "qgsserverinterface.h"
21#include "qgswfsparameters.h"
22
23#include <QJsonObject>
24
33{
34 private:
35
39 void getGeometryType( const QgsVectorLayer *layer, QString &geomType, QString &geomLocalType ) const;
40
41 QJsonObject schemaLayerToJson( const QgsVectorLayer *layer ) const;
42
46 QJsonObject createDescribeFeatureTypeDocument( QgsServerInterface *serverIface, const QgsProject *project, const QString &version,
47 const QgsServerRequest &request ) const;
48
49 const QgsWfs::QgsWfsParameters wfsParameters;
50
51 public:
52
59
69 void writeDescribeFeatureType( QgsServerInterface *serverIface, const QgsProject *project, const QString &version,
70 const QgsServerRequest &request, QgsServerResponse &response ) const;
71};
72
73
74#endif
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition qgsproject.h:107
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
Represents a vector layer which manages a vector based data sets.
Json output formatter for DescribeFeatureType.
void writeDescribeFeatureType(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response) const
Output GeoJson response.
Provides an interface to retrieve and manipulate WFS parameters received from the client.