23QString QgsMultipartToSinglepartAlgorithm::name()
const
25 return QStringLiteral(
"multiparttosingleparts" );
28QString QgsMultipartToSinglepartAlgorithm::displayName()
const
30 return QObject::tr(
"Multipart to singleparts" );
33QString QgsMultipartToSinglepartAlgorithm::outputName()
const
35 return QObject::tr(
"Single parts" );
43QStringList QgsMultipartToSinglepartAlgorithm::tags()
const
45 return QObject::tr(
"multi,single,multiple,split,dump" ).split(
',' );
48QString QgsMultipartToSinglepartAlgorithm::group()
const
50 return QObject::tr(
"Vector geometry" );
53QString QgsMultipartToSinglepartAlgorithm::groupId()
const
55 return QStringLiteral(
"vectorgeometry" );
58QString QgsMultipartToSinglepartAlgorithm::shortHelpString()
const
60 return QObject::tr(
"This algorithm takes a vector layer with multipart geometries and generates a new one in which all geometries contain "
61 "a single part. Features with multipart geometries are divided in as many different features as parts the geometry "
62 "contain, and the same attributes are used for each of them." );
65QgsMultipartToSinglepartAlgorithm *QgsMultipartToSinglepartAlgorithm::createInstance()
const
67 return new QgsMultipartToSinglepartAlgorithm();
97 outputs.append( out );
102 outputs.append( feature );
@ 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