QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
23 QString QgsPromoteToMultipartAlgorithm::name()
const
25 return QStringLiteral(
"promotetomulti" );
28 QString QgsPromoteToMultipartAlgorithm::displayName()
const
30 return QObject::tr(
"Promote to multipart" );
33 QStringList QgsPromoteToMultipartAlgorithm::tags()
const
35 return QObject::tr(
"multi,single,multiple,convert,force,parts" ).split(
',' );
38 QString QgsPromoteToMultipartAlgorithm::group()
const
40 return QObject::tr(
"Vector geometry" );
43 QString QgsPromoteToMultipartAlgorithm::groupId()
const
45 return QStringLiteral(
"vectorgeometry" );
48 QString QgsPromoteToMultipartAlgorithm::outputName()
const
50 return QObject::tr(
"Multiparts" );
53 QString QgsPromoteToMultipartAlgorithm::shortHelpString()
const
55 return QObject::tr(
"This algorithm takes a vector layer with singlepart geometries and generates a new one in which all geometries are "
56 "multipart. Input features which are already multipart features will remain unchanged." ) +
57 QStringLiteral(
"\n\n" ) +
58 QObject::tr(
"This algorithm can be used to force geometries to multipart types in order to be compatible with data providers "
59 "with strict singlepart/multipart compatibility checks." ) +
60 QStringLiteral(
"\n\n" ) +
61 QObject::tr(
"See the 'Collect geometries' or 'Aggregate' algorithms for alternative options." );
64 QgsPromoteToMultipartAlgorithm *QgsPromoteToMultipartAlgorithm::createInstance()
const
66 return new QgsPromoteToMultipartAlgorithm();
69 bool QgsPromoteToMultipartAlgorithm::supportInPlaceEdit(
const QgsMapLayer *l )
const
71 const QgsVectorLayer *layer = qobject_cast< const QgsVectorLayer * >( l );
Q_INVOKABLE QgsWkbTypes::Type wkbType() const FINAL
Returns the WKBType or WKBUnknown in case of error.
Base class for providing feedback from a processing algorithm.
@ FlagSkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
Type
The WKB type describes the number of dimensions a geometry has.
bool supportInPlaceEdit(const QgsMapLayer *layer) const override
Checks whether this algorithm supports in-place editing on the given layer Default implementation for...
static Type multiType(Type type) SIP_HOLDGIL
Returns the multi type for a WKB type.
bool isMultipart() const SIP_HOLDGIL
Returns true if WKB of the geometry is of WKBMulti* type.
void setGeometry(const QgsGeometry &geometry)
Set the feature's geometry.
Contains information about the context in which a processing algorithm is executed.
QList< QgsFeature > QgsFeatureList
Flag
Flags controlling how QgsProcessingFeatureSource fetches features.
A geometry is the spatial representation of a feature.
Represents a vector layer which manages a vector based data sets.
bool hasGeometry() const
Returns true if the feature has an associated geometry.
Base class for all map layer types.
bool convertToMultiType()
Converts single type geometry into multitype geometry e.g.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
static bool isMultiType(Type type) SIP_HOLDGIL
Returns true if the WKB type is a multi type.