|
| QgsFeatureRequest () |
| construct a default request: for all features get attributes and geometries More...
|
|
| QgsFeatureRequest (const QgsExpression &expr, const QgsExpressionContext &context=QgsExpressionContext()) |
| construct a request with a filter expression More...
|
|
| QgsFeatureRequest (const QgsFeatureIds &fids) |
| construct a request with feature ID filter More...
|
|
| QgsFeatureRequest (const QgsFeatureRequest &rh) |
| copy constructor More...
|
|
| QgsFeatureRequest (const QgsRectangle &rectangle) |
| Construct a request with rectangle bounding box filter. More...
|
|
| QgsFeatureRequest (QgsFeatureId fid) |
| construct a request with feature ID filter More...
|
|
| ~QgsFeatureRequest () |
|
bool | acceptFeature (const QgsFeature &feature) |
| Check if a feature is accepted by this requests filter. More...
|
|
QgsFeatureRequest & | addOrderBy (const QString &expression, bool ascending, bool nullsfirst) |
| Adds a new OrderByClause, appending it as the least important one. More...
|
|
QgsFeatureRequest & | addOrderBy (const QString &expression, bool ascending=true) |
| Adds a new OrderByClause, appending it as the least important one. More...
|
|
QgsFeatureRequest & | combineFilterExpression (const QString &expression) |
| Modifies the existing filter expression to add an additional expression filter. More...
|
|
Q_DECL_DEPRECATED int | connectionTimeout () const |
| Returns the timeout (in milliseconds) for how long we should wait for a connection if none is available from the pool at this moment. More...
|
|
QgsCoordinateReferenceSystem | destinationCrs () const |
| Returns the destination coordinate reference system for feature's geometries, or an invalid QgsCoordinateReferenceSystem if no reprojection will be done and all features will be left with their original geometry. More...
|
|
QgsFeatureRequest & | disableFilter () |
| Disables any attribute/ID filtering. More...
|
|
double | distanceWithin () const |
| Returns the maximum distance from the referenceGeometry() of fetched features, if spatialFilterType() is Qgis::SpatialFilterType::DistanceWithin. More...
|
|
QgsExpressionContext * | expressionContext () |
| Returns the expression context used to evaluate filter expressions. More...
|
|
QgsFeedback * | feedback () const |
| Returns the feedback object that can be queried regularly by the iterator to check if it should be canceled, if set. More...
|
|
QgsExpression * | filterExpression () const |
| Returns the filter expression (if set). More...
|
|
QgsFeatureId | filterFid () const |
| Returns the feature ID that should be fetched. More...
|
|
const QgsFeatureIds & | filterFids () const |
| Returns the feature IDs that should be fetched. More...
|
|
QgsRectangle | filterRect () const |
| Returns the rectangle from which features will be taken. More...
|
|
FilterType | filterType () const |
| Returns the attribute/ID filter type which is currently set on this request. More...
|
|
Flags | flags () const |
| Returns the flags which affect how features are fetched. More...
|
|
std::function< void(const QgsFeature &) > | invalidGeometryCallback () const |
| Returns the callback function to use when encountering an invalid geometry and invalidGeometryCheck() is set to GeometryAbortOnInvalid or GeometrySkipInvalid. More...
|
|
InvalidGeometryCheck | invalidGeometryCheck () const |
| Returns the invalid geometry checking behavior. More...
|
|
long long | limit () const |
| Returns the maximum number of features to request, or -1 if no limit set. More...
|
|
QgsFeatureRequest & | operator= (const QgsFeatureRequest &rh) |
| Assignment operator. More...
|
|
OrderBy | orderBy () const |
| Returns a list of order by clauses specified for this feature request. More...
|
|
QgsGeometry | referenceGeometry () const |
| Returns the reference geometry used for spatial filtering of features. More...
|
|
std::shared_ptr< QgsGeometryEngine > | referenceGeometryEngine () const |
| Returns the reference geometry engine used for spatial filtering of features. More...
|
|
bool | requestMayBeNested () const |
| In case this request may be run nested within another already running iteration on the same connection, set this to true . More...
|
|
Q_DECL_DEPRECATED QgsFeatureRequest & | setConnectionTimeout (int connectionTimeout) |
| Sets the timeout (in milliseconds) for how long we should wait for a connection if none is available from the pool at this moment. More...
|
|
QgsFeatureRequest & | setDestinationCrs (const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context) |
| Sets the destination crs for feature's geometries. More...
|
|
QgsFeatureRequest & | setDistanceWithin (const QgsGeometry &geometry, double distance) |
| Sets a reference geometry and a maximum distance from this geometry to retrieve features within. More...
|
|
QgsFeatureRequest & | setExpressionContext (const QgsExpressionContext &context) |
| Sets the expression context used to evaluate filter expressions. More...
|
|
void | setFeedback (QgsFeedback *feedback) |
| Attach a feedback object that can be queried regularly by the iterator to check if it should be canceled. More...
|
|
QgsFeatureRequest & | setFilterExpression (const QString &expression) |
| Set the filter expression. More...
|
|
QgsFeatureRequest & | setFilterFid (QgsFeatureId fid) |
| Sets the feature ID that should be fetched. More...
|
|
QgsFeatureRequest & | setFilterFids (const QgsFeatureIds &fids) |
| Sets the feature IDs that should be fetched. More...
|
|
QgsFeatureRequest & | setFilterRect (const QgsRectangle &rectangle) |
| Sets the rectangle from which features will be taken. More...
|
|
QgsFeatureRequest & | setFlags (QgsFeatureRequest::Flags flags) |
| Sets flags that affect how features will be fetched. More...
|
|
QgsFeatureRequest & | setInvalidGeometryCallback (const std::function< void(const QgsFeature &)> &callback) |
| Sets a callback function to use when encountering an invalid geometry and invalidGeometryCheck() is set to GeometryAbortOnInvalid or GeometrySkipInvalid. More...
|
|
QgsFeatureRequest & | setInvalidGeometryCheck (InvalidGeometryCheck check) |
| Sets invalid geometry checking behavior. More...
|
|
QgsFeatureRequest & | setLimit (long long limit) |
| Set the maximum number of features to request. More...
|
|
QgsFeatureRequest & | setNoAttributes () |
| Set that no attributes will be fetched. More...
|
|
QgsFeatureRequest & | setOrderBy (const OrderBy &orderBy) |
| Set a list of order by clauses. More...
|
|
QgsFeatureRequest & | setRequestMayBeNested (bool requestMayBeNested) |
| In case this request may be run nested within another already running iteration on the same connection, set this to true . More...
|
|
QgsFeatureRequest & | setSimplifyMethod (const QgsSimplifyMethod &simplifyMethod) |
| Set a simplification method for geometries that will be fetched. More...
|
|
QgsFeatureRequest & | setSubsetOfAttributes (const QgsAttributeList &attrs) |
| Set a subset of attributes that will be fetched. More...
|
|
QgsFeatureRequest & | setSubsetOfAttributes (const QSet< QString > &attrNames, const QgsFields &fields) |
| Sets a subset of attributes by names that will be fetched. More...
|
|
QgsFeatureRequest & | setSubsetOfAttributes (const QStringList &attrNames, const QgsFields &fields) |
| Sets a subset of attributes by names that will be fetched. More...
|
|
QgsFeatureRequest & | setTimeout (int timeout) |
| Sets the timeout (in milliseconds) for the maximum time we should wait during feature requests before a feature is returned. More...
|
|
QgsFeatureRequest & | setTransformErrorCallback (const std::function< void(const QgsFeature &)> &callback) |
| Sets a callback function to use when encountering a transform error when iterating features and a destinationCrs() is set. More...
|
|
const QgsSimplifyMethod & | simplifyMethod () const |
| Returns the simplification method for geometries that will be fetched. More...
|
|
Qgis::SpatialFilterType | spatialFilterType () const |
| Returns the spatial filter type which is currently set on this request. More...
|
|
QgsAttributeList | subsetOfAttributes () const |
| Returns the subset of attributes which at least need to be fetched. More...
|
|
int | timeout () const |
| Returns the timeout (in milliseconds) for the maximum time we should wait during feature requests before a feature is returned. More...
|
|
QgsCoordinateTransformContext | transformContext () const |
| Returns the transform context, for use when a destinationCrs() has been set and reprojection is required. More...
|
|
std::function< void(const QgsFeature &) > | transformErrorCallback () const |
| Returns the callback function to use when encountering a transform error when iterating features and a destinationCrs() is set. More...
|
|