QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Provides an interface to retrieve and manipulate WFS parameters received from the client. More...
#include <qgswfsparameters.h>
Public Types | |
enum | Format { NONE , GML2 , GML3 , GeoJSON } |
Output format for the response. More... | |
enum | ResultType { RESULTS , HITS } |
Type of results. More... | |
Public Member Functions | |
QgsWfsParameters () | |
Constructor for WFS parameters with default values only. More... | |
QgsWfsParameters (const QgsServerParameters ¶meters) | |
Constructor for WFS parameters with specific values. More... | |
virtual | ~QgsWfsParameters ()=default |
Default destructor for QgsWfsParameters. More... | |
QString | bbox () const |
Returns BBOX if defined or an empty string. More... | |
QgsRectangle | bboxAsRectangle () const |
Returns BBOX as a rectangle if defined and valid. More... | |
void | dump () const |
Dumps parameters. More... | |
QStringList | expFilters () const |
Returns EXP_FILTER parameter as list. More... | |
QStringList | featureIds () const |
Returns FEATUREID parameter as list. More... | |
QStringList | filters () const |
Returns FILTER parameter as list. More... | |
QString | geometryNameAsString () const |
Returns GEOMETRYNAME parameter as a string. More... | |
QString | maxFeatures () const |
Returns MAXFEATURES parameter as a string. More... | |
int | maxFeaturesAsInt () const |
Returns MAXFEATURES parameter as an int or its default value if not defined. More... | |
Format | outputFormat () const |
Returns format. More... | |
QString | outputFormatAsString () const |
Returns OUTPUTFORMAT parameter as a string. More... | |
QStringList | propertyNames () const |
Returns PROPERTYNAME parameter as list. More... | |
ResultType | resultType () const |
Returns resultType. More... | |
QString | resultTypeAsString () const |
Returns RESULTTYPE parameter as a string. More... | |
QStringList | sortBy () const |
Returns SORTBY parameter as list. More... | |
QString | srsName () const |
Returns SRSNAME parameter as a string. More... | |
QString | startIndex () const |
Returns STARTINDEX parameter as a string. More... | |
int | startIndexAsInt () const |
Returns STARTINDEX parameter as an int or its default value if not defined. More... | |
QStringList | typeNames () const |
Returns TYPENAME parameter as list. More... | |
QgsProjectVersion | versionAsNumber () const |
Returns VERSION parameter if defined or its default value. More... | |
Public Member Functions inherited from QgsServerParameters | |
QgsServerParameters () | |
Constructor. More... | |
QgsServerParameters (const QUrlQuery &query) | |
Constructor. More... | |
virtual | ~QgsServerParameters ()=default |
void | add (const QString &key, const QString &value) |
Adds a parameter. More... | |
void | clear () |
Removes all parameters. More... | |
QString | fileName () const |
Returns FILE_NAME parameter as a string or an empty string if not defined. More... | |
void | load (const QUrlQuery &query) |
Loads new parameters. More... | |
QString | map () const |
Returns MAP parameter as a string or an empty string if not defined. More... | |
void | remove (const QString &key) |
Removes a parameter. More... | |
void | remove (QgsServerParameter::Name name) |
Removes a parameter. More... | |
virtual QString | request () const |
Returns REQUEST parameter as a string or an empty string if not defined. More... | |
QString | service () const |
Returns SERVICE parameter as a string or an empty string if not defined. More... | |
QMap< QString, QString > | toMap () const |
Returns all parameters in a map. More... | |
QUrlQuery | urlQuery () const |
Returns a url query with underlying parameters. More... | |
QString | value (const QString &key) const |
Returns the value of a parameter. More... | |
virtual QString | version () const |
Returns VERSION parameter as a string or an empty string if not defined. More... | |
Additional Inherited Members | |
virtual bool | loadParameter (const QString &name, const QString &value) |
Loads a parameter with a specific value. More... | |
Protected Attributes inherited from QgsServerParameters | |
QMap< QString, QString > | mUnmanagedParameters |
Provides an interface to retrieve and manipulate WFS parameters received from the client.
Definition at line 125 of file qgswfsparameters.h.
Output format for the response.
Enumerator | |
---|---|
NONE | |
GML2 | |
GML3 | |
GeoJSON |
Definition at line 132 of file qgswfsparameters.h.
QgsWfs::QgsWfsParameters::QgsWfsParameters | ( | const QgsServerParameters & | parameters | ) |
Constructor for WFS parameters with specific values.
parameters | Map of parameters where keys are parameters' names. |
Definition at line 181 of file qgswfsparameters.cpp.
QgsWfs::QgsWfsParameters::QgsWfsParameters | ( | ) |
Constructor for WFS parameters with default values only.
Definition at line 130 of file qgswfsparameters.cpp.
|
virtualdefault |
Default destructor for QgsWfsParameters.
QString QgsWfs::QgsWfsParameters::bbox | ( | ) | const |
Returns BBOX if defined or an empty string.
Definition at line 341 of file qgswfsparameters.cpp.
QgsRectangle QgsWfs::QgsWfsParameters::bboxAsRectangle | ( | ) | const |
Returns BBOX as a rectangle if defined and valid.
An exception is raised if the BBOX string cannot be converted into a rectangle.
QgsBadRequestException |
Definition at line 346 of file qgswfsparameters.cpp.
void QgsWfs::QgsWfsParameters::dump | ( | ) | const |
Dumps parameters.
Definition at line 211 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::expFilters | ( | ) | const |
Returns EXP_FILTER parameter as list.
Definition at line 356 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::featureIds | ( | ) | const |
Returns FEATUREID parameter as list.
Definition at line 331 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::filters | ( | ) | const |
Returns FILTER parameter as list.
Definition at line 336 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::geometryNameAsString | ( | ) | const |
Returns GEOMETRYNAME parameter as a string.
Definition at line 361 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::maxFeatures | ( | ) | const |
Returns MAXFEATURES parameter as a string.
Definition at line 301 of file qgswfsparameters.cpp.
int QgsWfs::QgsWfsParameters::maxFeaturesAsInt | ( | ) | const |
Returns MAXFEATURES parameter as an int or its default value if not defined.
An exception is raised if I is defined and cannot be converted.
QgsBadRequestException |
Definition at line 306 of file qgswfsparameters.cpp.
QgsWfsParameters::Format QgsWfs::QgsWfsParameters::outputFormat | ( | ) | const |
Returns format.
If the OUTPUTFORMAT parameter is not used, then the default value is GML2 or GML3.
Definition at line 235 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::outputFormatAsString | ( | ) | const |
Returns OUTPUTFORMAT parameter as a string.
Definition at line 230 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::propertyNames | ( | ) | const |
Returns PROPERTYNAME parameter as list.
Definition at line 296 of file qgswfsparameters.cpp.
QgsWfsParameters::ResultType QgsWfs::QgsWfsParameters::resultType | ( | ) | const |
Returns resultType.
If the RESULTTYPE parameter is not used, then the default value is RESULTS.
Definition at line 284 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::resultTypeAsString | ( | ) | const |
Returns RESULTTYPE parameter as a string.
Definition at line 279 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::sortBy | ( | ) | const |
Returns SORTBY parameter as list.
Definition at line 351 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::srsName | ( | ) | const |
Returns SRSNAME parameter as a string.
Definition at line 321 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::startIndex | ( | ) | const |
Returns STARTINDEX parameter as a string.
Definition at line 311 of file qgswfsparameters.cpp.
int QgsWfs::QgsWfsParameters::startIndexAsInt | ( | ) | const |
Returns STARTINDEX parameter as an int or its default value if not defined.
An exception is raised if I is defined and cannot be converted.
QgsBadRequestException |
Definition at line 316 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::typeNames | ( | ) | const |
Returns TYPENAME parameter as list.
Definition at line 326 of file qgswfsparameters.cpp.
QgsProjectVersion QgsWfs::QgsWfsParameters::versionAsNumber | ( | ) | const |
Returns VERSION parameter if defined or its default value.
Definition at line 366 of file qgswfsparameters.cpp.