Skip to content

Commit b4883ee

Browse files
committed
Support in-place drop edit geometry operation
1 parent a764b4b commit b4883ee

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/analysis/processing/qgsalgorithmdropgeometry.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
***************************************************************************/
1717

1818
#include "qgsalgorithmdropgeometry.h"
19+
#include "qgsvectorlayer.h"
1920

2021
///@cond PRIVATE
2122

@@ -64,6 +65,11 @@ QgsCoordinateReferenceSystem QgsDropGeometryAlgorithm::outputCrs( const QgsCoord
6465
return QgsCoordinateReferenceSystem();
6566
}
6667

68+
bool QgsDropGeometryAlgorithm::supportInPlaceEdit( const QgsMapLayer *l ) const
69+
{
70+
return qobject_cast< const QgsVectorLayer * >( l );
71+
}
72+
6773
QgsWkbTypes::Type QgsDropGeometryAlgorithm::outputWkbType( QgsWkbTypes::Type ) const
6874
{
6975
return QgsWkbTypes::NoGeometry;

src/analysis/processing/qgsalgorithmdropgeometry.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class QgsDropGeometryAlgorithm : public QgsProcessingFeatureBasedAlgorithm
4242
QString shortHelpString() const override;
4343
QgsDropGeometryAlgorithm *createInstance() const override SIP_FACTORY;
4444
QgsCoordinateReferenceSystem outputCrs( const QgsCoordinateReferenceSystem &inputCrs ) const override;
45+
bool supportInPlaceEdit( const QgsMapLayer *layer ) const override;
4546

4647
protected:
4748

0 commit comments

Comments
 (0)