QGIS API Documentation 3.41.0-Master (cea29feecf2)
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:
38 void getGeometryType( const QgsVectorLayer *layer, QString &geomType, QString &geomLocalType ) const;
39
40 QJsonObject schemaLayerToJson( const QgsVectorLayer *layer ) const;
41
45 QJsonObject createDescribeFeatureTypeDocument( QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request ) const;
46
47 const QgsWfs::QgsWfsParameters wfsParameters;
48
49 public:
56
66 void writeDescribeFeatureType( QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response ) const;
67};
68
69
70#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.