23 QString QgsMultipartToSinglepartAlgorithm::name()
 const    25   return QStringLiteral( 
"multiparttosingleparts" );
    28 QString QgsMultipartToSinglepartAlgorithm::displayName()
 const    30   return QObject::tr( 
"Multipart to singleparts" );
    33 QString QgsMultipartToSinglepartAlgorithm::outputName()
 const    35   return QObject::tr( 
"Single parts" );
    43 QStringList QgsMultipartToSinglepartAlgorithm::tags()
 const    45   return QObject::tr( 
"multi,single,multiple,split,dump" ).split( 
',' );
    48 QString QgsMultipartToSinglepartAlgorithm::group()
 const    50   return QObject::tr( 
"Vector geometry" );
    53 QString QgsMultipartToSinglepartAlgorithm::groupId()
 const    55   return QStringLiteral( 
"vectorgeometry" );
    58 QString 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." );
    65 QgsMultipartToSinglepartAlgorithm *QgsMultipartToSinglepartAlgorithm::createInstance()
 const    67   return new QgsMultipartToSinglepartAlgorithm();
    77 QgsFeatureSink::SinkFlags QgsMultipartToSinglepartAlgorithm::sinkFlags()
 const    97       outputs.append( out );
   102     outputs.append( feature );
 static Type singleType(Type type)
Returns the single type for a WKB type. 
 
Base class for providing feedback from a processing algorithm. 
 
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
 
bool isMultipart() const
Returns true if WKB of the geometry is of WKBMulti* type. 
 
QList< QgsFeature > QgsFeatureList
 
A geometry is the spatial representation of a feature. 
 
void setAttributes(const QgsAttributes &attrs)
Sets the feature's attributes. 
 
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
 
bool hasGeometry() const
Returns true if the feature has an associated geometry. 
 
This flag indicates, that a primary key field cannot be guaranteed to be unique and the sink should i...
 
QVector< QgsGeometry > asGeometryCollection() const
Returns contents of the geometry as a list of geometries. 
 
Type
The WKB type describes the number of dimensions a geometry has. 
 
Flag
Flags controlling how QgsProcessingFeatureSource fetches features. 
 
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry. 
 
Contains information about the context in which a processing algorithm is executed.