46 return ( mLayer && mFeature.
isValid() && hasValidGeometry() );
51 return ( mLayer == other.
layer() ) && ( mFeature == other.
feature() );
56 return ( mLayer != other.
layer() ) || ( mFeature != other.
feature() );
59 bool QgsQuickFeatureLayerPair::hasValidGeometry()
const
bool isValid() const
Returns the validity of this feature.
QgsWkbTypes::Type wkbType() const FINAL
Returns the WKBType or WKBUnknown in case of error.
bool isValid() const
Whether.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool operator==(const QgsQuickFeatureLayerPair &other) const
static bool hasZ(Type type)
Tests whether a WKB type contains the z-dimension.
QgsFeature & featureRef()
Feature that belongs to layer.
QgsFeature feature() const
Feature that belongs to layer.
QgsFeature feature
Feature that belongs to layer.
QgsQuickFeatureLayerPair()
Constructs invalid feature-layer pair.
bool operator!=(const QgsQuickFeatureLayerPair &other) const
bool hasGeometry() const
Returns true if the feature has an associated geometry.
QgsVectorLayer layer
Vector layer to which the feature belongs.
QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.
Pair of QgsFeature and QgsVectorLayer.
Represents a vector layer which manages a vector based data sets.
QgsWkbTypes::GeometryType type() const
Returns type of the geometry as a QgsWkbTypes::GeometryType.
QgsWkbTypes::Type wkbType() const
Returns type of the geometry as a WKB type (point / linestring / polygon etc.)
QgsVectorLayer * layer() const
Vector layer to which the feature belongs.