File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 16
16
***************************************************************************/
17
17
18
18
#include " qgsalgorithmdropgeometry.h"
19
+ #include " qgsvectorlayer.h"
19
20
20
21
// /@cond PRIVATE
21
22
@@ -64,6 +65,11 @@ QgsCoordinateReferenceSystem QgsDropGeometryAlgorithm::outputCrs( const QgsCoord
64
65
return QgsCoordinateReferenceSystem ();
65
66
}
66
67
68
+ bool QgsDropGeometryAlgorithm::supportInPlaceEdit ( const QgsMapLayer *l ) const
69
+ {
70
+ return qobject_cast< const QgsVectorLayer * >( l );
71
+ }
72
+
67
73
QgsWkbTypes::Type QgsDropGeometryAlgorithm::outputWkbType ( QgsWkbTypes::Type ) const
68
74
{
69
75
return QgsWkbTypes::NoGeometry;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class QgsDropGeometryAlgorithm : public QgsProcessingFeatureBasedAlgorithm
42
42
QString shortHelpString () const override ;
43
43
QgsDropGeometryAlgorithm *createInstance () const override SIP_FACTORY;
44
44
QgsCoordinateReferenceSystem outputCrs ( const QgsCoordinateReferenceSystem &inputCrs ) const override ;
45
+ bool supportInPlaceEdit ( const QgsMapLayer *layer ) const override ;
45
46
46
47
protected:
47
48
You can’t perform that action at this time.
0 commit comments