23 QString QgsDropGeometryAlgorithm::name()
const
25 return QStringLiteral(
"dropgeometries" );
28 QString QgsDropGeometryAlgorithm::displayName()
const
30 return QObject::tr(
"Drop geometries" );
33 QStringList QgsDropGeometryAlgorithm::tags()
const
35 return QObject::tr(
"remove,drop,delete,geometry,objects" ).split(
',' );
38 QString QgsDropGeometryAlgorithm::group()
const
40 return QObject::tr(
"Vector general" );
43 QString QgsDropGeometryAlgorithm::groupId()
const
45 return QStringLiteral(
"vectorgeneral" );
48 QString QgsDropGeometryAlgorithm::outputName()
const
50 return QObject::tr(
"Dropped geometries" );
53 QString QgsDropGeometryAlgorithm::shortHelpString()
const
55 return QObject::tr(
"This algorithm removes any geometries from an input layer and returns a layer containing only the feature attributes." );
58 QgsDropGeometryAlgorithm *QgsDropGeometryAlgorithm::createInstance()
const
60 return new QgsDropGeometryAlgorithm();
68 bool QgsDropGeometryAlgorithm::supportInPlaceEdit(
const QgsMapLayer *l )
const
70 return qobject_cast< const QgsVectorLayer * >( l );