QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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. | |
QgsWfsParameters (const QgsServerParameters ¶meters) | |
Constructor for WFS parameters with specific values. | |
virtual | ~QgsWfsParameters ()=default |
QString | bbox () const |
Returns BBOX if defined or an empty string. | |
QgsRectangle | bboxAsRectangle () const |
Returns BBOX as a rectangle if defined and valid. | |
void | dump () const |
Dumps parameters. | |
QStringList | expFilters () const |
Returns EXP_FILTER parameter as list. | |
QStringList | featureIds () const |
Returns FEATUREID parameter as list. | |
QStringList | filters () const |
Returns FILTER parameter as list. | |
QString | geometryNameAsString () const |
Returns GEOMETRYNAME parameter as a string. | |
QString | maxFeatures () const |
Returns MAXFEATURES parameter as a string. | |
int | maxFeaturesAsInt () const |
Returns MAXFEATURES parameter as an int or its default value if not defined. | |
Format | outputFormat () const |
Returns format. | |
QString | outputFormatAsString () const |
Returns OUTPUTFORMAT parameter as a string. | |
QStringList | propertyNames () const |
Returns PROPERTYNAME parameter as list. | |
ResultType | resultType () const |
Returns resultType. | |
QString | resultTypeAsString () const |
Returns RESULTTYPE parameter as a string. | |
QStringList | sortBy () const |
Returns SORTBY parameter as list. | |
QString | srsName () const |
Returns SRSNAME parameter as a string. | |
QString | startIndex () const |
Returns STARTINDEX parameter as a string. | |
int | startIndexAsInt () const |
Returns STARTINDEX parameter as an int or its default value if not defined. | |
QStringList | typeNames () const |
Returns TYPENAME parameter as list. | |
QgsProjectVersion | versionAsNumber () const |
Returns VERSION parameter if defined or its default value. | |
Public Member Functions inherited from QgsServerParameters | |
QgsServerParameters () | |
Constructor. | |
QgsServerParameters (const QUrlQuery &query) | |
Constructor. | |
virtual | ~QgsServerParameters ()=default |
void | add (const QString &key, const QString &value) |
Adds a parameter. | |
void | clear () |
Removes all parameters. | |
QString | fileName () const |
Returns FILE_NAME parameter as a string or an empty string if not defined. | |
void | load (const QUrlQuery &query) |
Loads new parameters. | |
QString | map () const |
Returns MAP parameter as a string or an empty string if not defined. | |
void | remove (const QString &key) |
Removes a parameter. | |
void | remove (QgsServerParameter::Name name) |
Removes a parameter. | |
virtual QString | request () const |
Returns REQUEST parameter as a string or an empty string if not defined. | |
QString | service () const |
Returns SERVICE parameter as a string or an empty string if not defined. | |
QMap< QString, QString > | toMap () const |
Returns all parameters in a map. | |
QUrlQuery | urlQuery () const |
Returns a url query with underlying parameters. | |
QString | value (const QString &key) const |
Returns the value of a parameter. | |
virtual QString | version () const |
Returns VERSION parameter as a string or an empty string if not defined. | |
Additional Inherited Members | |
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 121 of file qgswfsparameters.h.
Output format for the response.
Enumerator | |
---|---|
NONE | |
GML2 | |
GML3 | |
GeoJSON |
Definition at line 128 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 182 of file qgswfsparameters.cpp.
QgsWfs::QgsWfsParameters::QgsWfsParameters | ( | ) |
Constructor for WFS parameters with default values only.
Definition at line 131 of file qgswfsparameters.cpp.
|
virtualdefault |
QString QgsWfs::QgsWfsParameters::bbox | ( | ) | const |
Returns BBOX if defined or an empty string.
Definition at line 342 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 347 of file qgswfsparameters.cpp.
void QgsWfs::QgsWfsParameters::dump | ( | ) | const |
Dumps parameters.
Definition at line 212 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::expFilters | ( | ) | const |
Returns EXP_FILTER parameter as list.
Definition at line 357 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::featureIds | ( | ) | const |
Returns FEATUREID parameter as list.
Definition at line 332 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::filters | ( | ) | const |
Returns FILTER parameter as list.
Definition at line 337 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::geometryNameAsString | ( | ) | const |
Returns GEOMETRYNAME parameter as a string.
Definition at line 362 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::maxFeatures | ( | ) | const |
Returns MAXFEATURES parameter as a string.
Definition at line 302 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 307 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 236 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::outputFormatAsString | ( | ) | const |
Returns OUTPUTFORMAT parameter as a string.
Definition at line 231 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::propertyNames | ( | ) | const |
Returns PROPERTYNAME parameter as list.
Definition at line 297 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 285 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::resultTypeAsString | ( | ) | const |
Returns RESULTTYPE parameter as a string.
Definition at line 280 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::sortBy | ( | ) | const |
Returns SORTBY parameter as list.
Definition at line 352 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::srsName | ( | ) | const |
Returns SRSNAME parameter as a string.
Definition at line 322 of file qgswfsparameters.cpp.
QString QgsWfs::QgsWfsParameters::startIndex | ( | ) | const |
Returns STARTINDEX parameter as a string.
Definition at line 312 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 317 of file qgswfsparameters.cpp.
QStringList QgsWfs::QgsWfsParameters::typeNames | ( | ) | const |
Returns TYPENAME parameter as list.
Definition at line 327 of file qgswfsparameters.cpp.
QgsProjectVersion QgsWfs::QgsWfsParameters::versionAsNumber | ( | ) | const |
Returns VERSION parameter if defined or its default value.
Definition at line 367 of file qgswfsparameters.cpp.