21 #ifndef QGSSERVERAPIUTILS_H    22 #define QGSSERVERAPIUTILS_H    24 #include "qgis_server.h"    30 #ifdef HAVE_SERVER_PYTHON_PLUGINS    40 #include "nlohmann/json_fwd.hpp"    81     static const QVector<QgsMapLayer *> publishedWfsLayers( 
const QgsProject *project );
    97 #ifdef HAVE_SERVER_PYTHON_PLUGINS   101       QVector<const T *> result;
   105         const auto constLayers { project->
layers<T *>() };
   106         for ( 
const auto &layer : constLayers )
   108           if ( ! wfsLayerIds.contains( layer->
id() ) )
   112 #ifdef HAVE_SERVER_PYTHON_PLUGINS   118           result.push_back( layer );
   130     static QString sanitizedFieldValue( 
const QString &value );
   136     static QStringList publishedCrsList( 
const QgsProject *project );
   147     static QString appendMapParameter( 
const QString &path, 
const QUrl &requestUrl );
   150 #endif // QGSSERVERAPIUTILS_H The QgsServerApiUtils class contains helper functions to handle common API operations. 
A rectangle specified with double values. 
QgsRectangle parseBbox(const QString &bboxStr)
Parse bounding box. 
const QgsProject * project() const
Returns the (possibly NULL) project. 
const QgsCoordinateReferenceSystem & crs
QgsServerInterface * serverInterface() const
Returns the server interface. 
QString id() const
Returns the layer's unique ID, which is used to access this layer from QgsProject. 
Encapsulates a QGIS project, including sets of map layers and their styles, layouts, annotations, canvases, etc. 
The QgsServerApiContext class encapsulates the resources for a particular client request: the request...
bool layerReadPermission(const QgsMapLayer *layer) const
Returns the layer read right. 
QVector< T > layers() const
Returns a list of registered map layers with a specified layer type. 
SERVER_EXPORT QStringList wfsLayerIds(const QgsProject &project)
Returns the Layer ids list defined in a QGIS project as published in WFS. 
This class represents a coordinate reference system (CRS). 
A helper class that centralizes restrictions given by all the access control filter plugins...
virtual QgsAccessControl * accessControls() const =0
Gets the registered access control filters. 
Represents a vector layer which manages a vector based data sets. 
static const QVector< const T * > publishedWfsLayers(const QgsServerApiContext &context)
Returns the list of layers of type T accessible to the WFS service for a given project.