26using namespace Qt::StringLiterals;
30QString QgsForceCWAlgorithm::name()
const
35QString QgsForceCWAlgorithm::displayName()
const
37 return QObject::tr(
"Force polygons clockwise" );
40QStringList QgsForceCWAlgorithm::tags()
const
42 return QObject::tr(
"clockwise,cw,orientation,ring,repair,invalid,geometry,make,valid" ).split(
',' );
45QString QgsForceCWAlgorithm::group()
const
47 return QObject::tr(
"Vector geometry" );
50QString QgsForceCWAlgorithm::groupId()
const
52 return u
"vectorgeometry"_s;
60QString QgsForceCWAlgorithm::outputName()
const
62 return QObject::tr(
"Reoriented" );
65QString QgsForceCWAlgorithm::shortHelpString()
const
67 return QObject::tr(
"This algorithm forces polygon geometries to respect the convention where the exterior ring is oriented in a clockwise direction "
68 "and the interior rings in a counter-clockwise direction." );
71QString QgsForceCWAlgorithm::shortDescription()
const
73 return QObject::tr(
"Forces polygon geometries to have clockwise exterior rings and counter-clockwise interior rings." );
76QList<int> QgsForceCWAlgorithm::inputLayerTypes()
const
81QgsForceCWAlgorithm *QgsForceCWAlgorithm::createInstance()
const
83 return new QgsForceCWAlgorithm();
@ 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 forcePolygonClockwise() const
Forces geometries to respect the exterior ring is clockwise, interior rings are counter-clockwise con...
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
QList< QgsFeature > QgsFeatureList