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();
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 SIP_HOLDGIL
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.
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.
A boolean parameter for processing algorithms.
Type
The WKB type describes the number of dimensions a geometry has.
static Type dropZ(Type type) SIP_HOLDGIL
Drops the z dimension (if present) for a WKB type and returns the new type.
static Type dropM(Type type) SIP_HOLDGIL
Drops the m dimension (if present) for a WKB type and returns the new type.
QList< QgsFeature > QgsFeatureList