QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
A layer feature combination to uniquely identify and access a feature in a set of layers. More...
#include <qgsgeometrycheckerutils.h>
Public Member Functions | |
LayerFeature (const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs) | |
Create a new layer/feature combination. More... | |
QgsFeature | feature () const |
Returns the feature. More... | |
QgsGeometry | geometry () const |
Returns the geometry of this feature. More... | |
QString | id () const |
Returns a combination of the layerId and the feature id. More... | |
QPointer< QgsVectorLayer > | layer () const |
The layer. More... | |
QString | layerId () const |
The layer id. More... | |
bool | operator!= (const QgsGeometryCheckerUtils::LayerFeature &other) const |
bool | operator== (const QgsGeometryCheckerUtils::LayerFeature &other) const |
bool | useMapCrs () const |
Returns if the geometry is reprojected to the map CRS or not. More... | |
A layer feature combination to uniquely identify and access a feature in a set of layers.
Definition at line 51 of file qgsgeometrycheckerutils.h.
QgsGeometryCheckerUtils::LayerFeature::LayerFeature | ( | const QgsFeaturePool * | pool, |
const QgsFeature & | feature, | ||
const QgsGeometryCheckContext * | context, | ||
bool | useMapCrs | ||
) |
Create a new layer/feature combination.
The layer is defined by pool, feature needs to be from this layer. If useMapCrs is true
, geometries will be reprojected to the mapCrs defined in context.
Definition at line 32 of file qgsgeometrycheckerutils.cpp.
QgsFeature QgsGeometryCheckerUtils::LayerFeature::feature | ( | ) | const |
Returns the feature.
The geometry will not be reprojected regardless of useMapCrs.
Definition at line 55 of file qgsgeometrycheckerutils.cpp.
QgsGeometry QgsGeometryCheckerUtils::LayerFeature::geometry | ( | ) | const |
Returns the geometry of this feature.
If useMapCrs was specified, it will already be reprojected into the CRS specified in the context specified in the constructor.
Definition at line 70 of file qgsgeometrycheckerutils.cpp.
QString QgsGeometryCheckerUtils::LayerFeature::id | ( | ) | const |
Returns a combination of the layerId and the feature id.
Definition at line 75 of file qgsgeometrycheckerutils.cpp.
QPointer< QgsVectorLayer > QgsGeometryCheckerUtils::LayerFeature::layer | ( | ) | const |
The layer.
Definition at line 60 of file qgsgeometrycheckerutils.cpp.
QString QgsGeometryCheckerUtils::LayerFeature::layerId | ( | ) | const |
The layer id.
Definition at line 65 of file qgsgeometrycheckerutils.cpp.
bool QgsGeometryCheckerUtils::LayerFeature::operator!= | ( | const QgsGeometryCheckerUtils::LayerFeature & | other | ) | const |
Definition at line 85 of file qgsgeometrycheckerutils.cpp.
bool QgsGeometryCheckerUtils::LayerFeature::operator== | ( | const QgsGeometryCheckerUtils::LayerFeature & | other | ) | const |
Definition at line 80 of file qgsgeometrycheckerutils.cpp.
bool QgsGeometryCheckerUtils::LayerFeature::useMapCrs | ( | ) | const |
Returns if the geometry is reprojected to the map CRS or not.
Definition at line 108 of file qgsgeometrycheckerutils.cpp.