26QString QgsForceRHRAlgorithm::name()
const
28 return QStringLiteral(
"forcerhr" );
31QString QgsForceRHRAlgorithm::displayName()
const
33 return QObject::tr(
"Force right-hand-rule" );
36QStringList QgsForceRHRAlgorithm::tags()
const
38 return QObject::tr(
"clockwise,counter,orientation,ring,repair,invalid,geometry,make,valid" ).split(
',' );
41QString QgsForceRHRAlgorithm::group()
const
43 return QObject::tr(
"Vector geometry" );
46QString QgsForceRHRAlgorithm::groupId()
const
48 return QStringLiteral(
"vectorgeometry" );
56QString QgsForceRHRAlgorithm::outputName()
const
58 return QObject::tr(
"Reoriented" );
61QString QgsForceRHRAlgorithm::shortHelpString()
const
63 return QObject::tr(
"This algorithm forces polygon geometries to respect the Right-Hand-Rule, in which the area that is bounded by a polygon "
64 "is to the right of the boundary. In particular, the exterior ring is oriented in a clockwise direction and the interior "
65 "rings in a counter-clockwise direction." );
68QString QgsForceRHRAlgorithm::shortDescription()
const
70 return QObject::tr(
"Forces polygon geometries to respect the Right-Hand-Rule." );
73QList<int> QgsForceRHRAlgorithm::inputLayerTypes()
const
78QgsForceRHRAlgorithm *QgsForceRHRAlgorithm::createInstance()
const
80 return new QgsForceRHRAlgorithm();
@ VectorPolygon
Vector polygon layers.
@ SkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
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.
Base class for providing feedback from a processing algorithm.
QList< QgsFeature > QgsFeatureList