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