25 QString QgsForceRHRAlgorithm::name()
const
27 return QStringLiteral(
"forcerhr" );
30 QString QgsForceRHRAlgorithm::displayName()
const
32 return QObject::tr(
"Force right-hand-rule" );
35 QStringList QgsForceRHRAlgorithm::tags()
const
37 return QObject::tr(
"clockwise,counter,orientation,ring,repair,invalid,geometry,make,valid" ).split(
',' );
40 QString QgsForceRHRAlgorithm::group()
const
42 return QObject::tr(
"Vector geometry" );
45 QString QgsForceRHRAlgorithm::groupId()
const
47 return QStringLiteral(
"vectorgeometry" );
55 QString QgsForceRHRAlgorithm::outputName()
const
57 return QObject::tr(
"Reoriented" );
60 QString QgsForceRHRAlgorithm::shortHelpString()
const
62 return QObject::tr(
"This algorithm forces polygon geometries to respect the Right-Hand-Rule, in which the area that is bounded by a polygon "
63 "is to the right of the boundary. In particular, the exterior ring is oriented in a clockwise direction and the interior "
64 "rings in a counter-clockwise direction." );
67 QString QgsForceRHRAlgorithm::shortDescription()
const
69 return QObject::tr(
"Forces polygon geometries to respect the Right-Hand-Rule." );
72 QList<int> QgsForceRHRAlgorithm::inputLayerTypes()
const
77 QgsForceRHRAlgorithm *QgsForceRHRAlgorithm::createInstance()
const
79 return new QgsForceRHRAlgorithm();
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
bool hasGeometry() const
Returns true if the feature has an associated geometry.
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
QgsGeometry forceRHR() const
Forces geometries to respect the Right-Hand-Rule, in which the area that is bounded by a polygon is t...
Contains information about the context in which a processing algorithm is executed.
Flag
Flags controlling how QgsProcessingFeatureSource fetches features.
@ FlagSkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
Base class for providing feedback from a processing algorithm.
@ TypeVectorPolygon
Vector polygon layers.
QList< QgsFeature > QgsFeatureList