22QString QgsDropMZValuesAlgorithm::name()
const
24 return QStringLiteral(
"dropmzvalues" );
27QString QgsDropMZValuesAlgorithm::displayName()
const
29 return QObject::tr(
"Drop M/Z values" );
32QStringList QgsDropMZValuesAlgorithm::tags()
const
34 return QObject::tr(
"drop,set,convert,m,measure,z,25d,3d,values" ).split(
',' );
37QString QgsDropMZValuesAlgorithm::group()
const
39 return QObject::tr(
"Vector geometry" );
42QString QgsDropMZValuesAlgorithm::groupId()
const
44 return QStringLiteral(
"vectorgeometry" );
47QString QgsDropMZValuesAlgorithm::outputName()
const
49 return QObject::tr(
"Z/M Dropped" );
52QString QgsDropMZValuesAlgorithm::shortHelpString()
const
54 return QObject::tr(
"This algorithm can remove any measure (M) or Z values from input geometries." );
57QgsDropMZValuesAlgorithm *QgsDropMZValuesAlgorithm::createInstance()
const
59 return new QgsDropMZValuesAlgorithm();
62bool QgsDropMZValuesAlgorithm::supportInPlaceEdit(
const QgsMapLayer *layer )
const
68void QgsDropMZValuesAlgorithm::initParameters(
const QVariantMap & )
91 mDropM = parameterAsBoolean( parameters, QStringLiteral(
"DROP_M_VALUES" ), context );
92 mDropZ = parameterAsBoolean( parameters, QStringLiteral(
"DROP_Z_VALUES" ), context );
103 newGeom->dropMValue();
105 newGeom->dropZValue();
@ SkipGeometryValidityChecks
Invalid geometry checks should always be skipped. This flag can be useful for algorithms which always...
WkbType
The WKB type describes the number of dimensions a geometry has.
QFlags< ProcessingFeatureSourceFlag > ProcessingFeatureSourceFlags
Flags which control how QgsProcessingFeatureSource fetches features.
virtual QgsAbstractGeometry * clone() const =0
Clones the geometry by performing a deep copy.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
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.
const QgsAbstractGeometry * constGet() const
Returns a non-modifiable (const) reference to the underlying abstract geometry primitive.
Base class for all map layer types.
Contains information about the context in which a processing algorithm is executed.
Base class for providing feedback from a processing algorithm.
A boolean parameter for processing algorithms.
static Qgis::WkbType dropM(Qgis::WkbType type)
Drops the m dimension (if present) for a WKB type and returns the new type.
static Qgis::WkbType dropZ(Qgis::WkbType type)
Drops the z dimension (if present) for a WKB type and returns the new type.
QList< QgsFeature > QgsFeatureList