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 );
@ 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 SIP_HOLDGIL
Returns true if WKB of the geometry is of WKBMulti* type.
Contains information about the context in which a processing algorithm is executed.
Flag
Flags controlling how QgsProcessingFeatureSource fetches features.
@ FlagSkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
Base class for providing feedback from a processing algorithm.
Type
The WKB type describes the number of dimensions a geometry has.
static Type singleType(Type type) SIP_HOLDGIL
Returns the single type for a WKB type.
QList< QgsFeature > QgsFeatureList