22 QString QgsPromoteToMultipartAlgorithm::name()
const 24 return QStringLiteral(
"promotetomulti" );
27 QString QgsPromoteToMultipartAlgorithm::displayName()
const 29 return QObject::tr(
"Promote to multipart" );
32 QStringList QgsPromoteToMultipartAlgorithm::tags()
const 34 return QObject::tr(
"multi,single,multiple,convert,force,parts" ).split(
',' );
37 QString QgsPromoteToMultipartAlgorithm::group()
const 39 return QObject::tr(
"Vector geometry" );
42 QString QgsPromoteToMultipartAlgorithm::groupId()
const 44 return QStringLiteral(
"vectorgeometry" );
47 QString QgsPromoteToMultipartAlgorithm::outputName()
const 49 return QObject::tr(
"Multiparts" );
52 QString QgsPromoteToMultipartAlgorithm::shortHelpString()
const 54 return QObject::tr(
"This algorithm takes a vector layer with singlepart geometries and generates a new one in which all geometries are " 55 "multipart. Input features which are already multipart features will remain unchanged." ) +
56 QStringLiteral(
"\n\n" ) +
57 QObject::tr(
"This algorithm can be used to force geometries to multipart types in order to be compatibility with data providers " 58 "with strict singlepart/multipart compatibility checks." ) +
59 QStringLiteral(
"\n\n" ) +
60 QObject::tr(
"See the 'Collect geometries' or 'Aggregate' algorithms for alternative options." );
63 QgsPromoteToMultipartAlgorithm *QgsPromoteToMultipartAlgorithm::createInstance()
const 65 return new QgsPromoteToMultipartAlgorithm();
static Type multiType(Type type)
Returns the multi 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.
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.
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.
bool convertToMultiType()
Converts single type geometry into multitype geometry e.g.
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
Contains information about the context in which a processing algorithm is executed.