22 QString QgsDropMZValuesAlgorithm::name()
const
24 return QStringLiteral(
"dropmzvalues" );
27 QString QgsDropMZValuesAlgorithm::displayName()
const
29 return QObject::tr(
"Drop M/Z values" );
32 QStringList QgsDropMZValuesAlgorithm::tags()
const
34 return QObject::tr(
"drop,set,convert,m,measure,z,25d,3d,values" ).split(
',' );
37 QString QgsDropMZValuesAlgorithm::group()
const
39 return QObject::tr(
"Vector geometry" );
42 QString QgsDropMZValuesAlgorithm::groupId()
const
44 return QStringLiteral(
"vectorgeometry" );
47 QString QgsDropMZValuesAlgorithm::outputName()
const
49 return QObject::tr(
"Z/M Dropped" );
52 QString QgsDropMZValuesAlgorithm::shortHelpString()
const
54 return QObject::tr(
"This algorithm can remove any measure (M) or Z values from input geometries." );
57 QgsDropMZValuesAlgorithm *QgsDropMZValuesAlgorithm::createInstance()
const
59 return new QgsDropMZValuesAlgorithm();
62 bool QgsDropMZValuesAlgorithm::supportInPlaceEdit(
const QgsMapLayer *layer )
const
68 void 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();