QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSWFSPARAMETERS_H
19 #define QGSWFSPARAMETERS_H
69 const QVariant::Type type = QVariant::String,
70 const QVariant defaultValue = QVariant(
"" ) );
265 QString
bbox()
const;
279 QStringList
sortBy()
const;
294 bool loadParameter(
const QString &key,
const QString &
value )
override;
297 void log(
const QString &msg )
const;
299 QList<QgsProjectVersion> mVersions;
300 QMap<QgsWfsParameter::Name, QgsWfsParameter> mWfsParameters;
QString resultTypeAsString() const
Returns RESULTTYPE parameter as a string.
void raiseError() const
Raises an error in case of an invalid conversion.
QStringList featureIds() const
Returns FEATUREID parameter as list.
int maxFeaturesAsInt() const
Returns MAXFEATURES parameter as an int or its default value if not defined.
WFS parameter received from the client.
QString srsName() const
Returns SRSNAME parameter as a string.
QString outputFormatAsString() const
Returns OUTPUTFORMAT parameter as a string.
ResultType resultType() const
Returns resultType.
void dump() const
Dumps parameters.
int startIndexAsInt() const
Returns STARTINDEX parameter as an int or its default value if not defined.
QgsRectangle toRectangle() const
Converts the parameter into a rectangle.
Format
Output format for the response.
QString value(const QString &key) const
Returns the value of a parameter.
QgsProjectVersion versionAsNumber() const
Returns VERSION parameter if defined or its default value.
A rectangle specified with double values.
Format outputFormat() const
Returns format.
QgsWfsParameter::Name mName
Name
Available parameters for WFS requests.
QStringList typeNames() const
Returns TYPENAME parameter as list.
QStringList filters() const
Returns FILTER parameter as list.
int toInt() const
Converts the parameter into an integer.
QString bbox() const
Returns BBOX if defined or an empty string.
QgsWfsParameter(const QgsWfsParameter::Name name=QgsWfsParameter::UNKNOWN, const QVariant::Type type=QVariant::String, const QVariant defaultValue=QVariant(""))
Constructor for QgsWfsParameter.
Definition of a parameter with basic conversion methods.
Provides an interface to retrieve and manipulate WFS parameters received from the client.
QString maxFeatures() const
Returns MAXFEATURES parameter as a string.
virtual ~QgsWfsParameters()=default
Default destructor for QgsWfsParameters.
ResultType
Type of results.
QStringList sortBy() const
Returns SORTBY parameter as list.
QString startIndex() const
Returns STARTINDEX parameter as a string.
QStringList propertyNames() const
Returns PROPERTYNAME parameter as list.
QgsRectangle bboxAsRectangle() const
Returns BBOX as a rectangle if defined and valid.
QgsServerParameters provides an interface to retrieve and manipulate global parameters received from ...
QString geometryNameAsString() const
Returns GEOMETRYNAME parameter as a string.
static QString name(const QgsWfsParameter::Name)
Converts a parameter's name into its string representation.
virtual ~QgsWfsParameter()=default
Default destructor for QgsWfsParameter.
QStringList toStringListWithExp(const QString &exp="\\(([^()]+)\\)") const
Converts the parameter into a list of string.
QgsWfsParameters()
Constructor for WFS parameters with default values only.
A class to describe the version of a project.
QStringList expFilters() const
Returns EXP_FILTER parameter as list.