Skip to content

Commit

Permalink
Support in-place drop edit geometry operation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 21, 2018
1 parent a764b4b commit b4883ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/analysis/processing/qgsalgorithmdropgeometry.cpp
Expand Up @@ -16,6 +16,7 @@
***************************************************************************/

#include "qgsalgorithmdropgeometry.h"
#include "qgsvectorlayer.h"

///@cond PRIVATE

Expand Down Expand Up @@ -64,6 +65,11 @@ QgsCoordinateReferenceSystem QgsDropGeometryAlgorithm::outputCrs( const QgsCoord
return QgsCoordinateReferenceSystem();
}

bool QgsDropGeometryAlgorithm::supportInPlaceEdit( const QgsMapLayer *l ) const
{
return qobject_cast< const QgsVectorLayer * >( l );
}

QgsWkbTypes::Type QgsDropGeometryAlgorithm::outputWkbType( QgsWkbTypes::Type ) const
{
return QgsWkbTypes::NoGeometry;
Expand Down
1 change: 1 addition & 0 deletions src/analysis/processing/qgsalgorithmdropgeometry.h
Expand Up @@ -42,6 +42,7 @@ class QgsDropGeometryAlgorithm : public QgsProcessingFeatureBasedAlgorithm
QString shortHelpString() const override;
QgsDropGeometryAlgorithm *createInstance() const override SIP_FACTORY;
QgsCoordinateReferenceSystem outputCrs( const QgsCoordinateReferenceSystem &inputCrs ) const override;
bool supportInPlaceEdit( const QgsMapLayer *layer ) const override;

protected:

Expand Down

0 comments on commit b4883ee

Please sign in to comment.