22 QString QgsMultipartToSinglepartAlgorithm::name()
const 24 return QStringLiteral(
"multiparttosingleparts" );
27 QString QgsMultipartToSinglepartAlgorithm::displayName()
const 29 return QObject::tr(
"Multipart to singleparts" );
32 QString QgsMultipartToSinglepartAlgorithm::outputName()
const 34 return QObject::tr(
"Single parts" );
42 QStringList QgsMultipartToSinglepartAlgorithm::tags()
const 44 return QObject::tr(
"multi,single,multiple,split,dump" ).split(
',' );
47 QString QgsMultipartToSinglepartAlgorithm::group()
const 49 return QObject::tr(
"Vector geometry" );
52 QString QgsMultipartToSinglepartAlgorithm::groupId()
const 54 return QStringLiteral(
"vectorgeometry" );
57 QString QgsMultipartToSinglepartAlgorithm::shortHelpString()
const 59 return QObject::tr(
"This algorithm takes a vector layer with multipart geometries and generates a new one in which all geometries contain " 60 "a single part. Features with multipart geometries are divided in as many different features as parts the geometry " 61 "contain, and the same attributes are used for each of them." );
64 QgsMultipartToSinglepartAlgorithm *QgsMultipartToSinglepartAlgorithm::createInstance()
const 66 return new QgsMultipartToSinglepartAlgorithm();
90 outputs.append( out );
95 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.
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.
QgsGeometry geometry() const
Returns the geometry associated with this feature.
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.