24QString QgsMultipartToSinglepartAlgorithm::name()
const
26 return QStringLiteral(
"multiparttosingleparts" );
29QString QgsMultipartToSinglepartAlgorithm::displayName()
const
31 return QObject::tr(
"Multipart to singleparts" );
34QString QgsMultipartToSinglepartAlgorithm::outputName()
const
36 return QObject::tr(
"Single parts" );
44QStringList QgsMultipartToSinglepartAlgorithm::tags()
const
46 return QObject::tr(
"multi,single,multiple,split,dump" ).split(
',' );
49QString QgsMultipartToSinglepartAlgorithm::group()
const
51 return QObject::tr(
"Vector geometry" );
54QString QgsMultipartToSinglepartAlgorithm::groupId()
const
56 return QStringLiteral(
"vectorgeometry" );
59QString QgsMultipartToSinglepartAlgorithm::shortHelpString()
const
61 return QObject::tr(
"This algorithm takes a vector layer with multipart geometries and generates a new one in which all geometries contain "
62 "a single part. Features with multipart geometries are divided in as many different features as parts the geometry "
63 "contain, and the same attributes are used for each of them." );
65QString QgsMultipartToSinglepartAlgorithm::shortDescription()
const
67 return QObject::tr(
"Takes a vector layer with multipart geometries and generates a new one in which all geometries contain "
76QgsMultipartToSinglepartAlgorithm *QgsMultipartToSinglepartAlgorithm::createInstance()
const
78 return new QgsMultipartToSinglepartAlgorithm();
108 outputs.append( out );
113 outputs.append( feature );
@ RegeneratesPrimaryKey
Algorithm always drops any existing primary keys or FID values and regenerates them in outputs.
QFlags< ProcessingAlgorithmDocumentationFlag > ProcessingAlgorithmDocumentationFlags
Flags describing algorithm behavior for documentation purposes.
@ SkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
WkbType
The WKB type describes the number of dimensions a geometry has.
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
QFlags< SinkFlag > SinkFlags
@ RegeneratePrimaryKey
This flag indicates, that a primary key field cannot be guaranteed to be unique and the sink should i...
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
void setAttributes(const QgsAttributes &attrs)
Sets the feature's attributes.
bool hasGeometry() const
Returns true if the feature has an associated geometry.
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
A geometry is the spatial representation of a feature.
QVector< QgsGeometry > asGeometryCollection() const
Returns contents of the geometry as a list of geometries.
bool isMultipart() const
Returns true if WKB of the geometry is of WKBMulti* type.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
static Qgis::WkbType singleType(Qgis::WkbType type)
Returns the single type for a WKB type.
QList< QgsFeature > QgsFeatureList