Skip to content
Permalink
Browse files

Support in-place drop edit geometry operation

  • Loading branch information
nyalldawson committed Sep 21, 2018
1 parent a764b4b commit b4883eecba5679143fad02809927b1458caee827
@@ -16,6 +16,7 @@
***************************************************************************/

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

///@cond PRIVATE

@@ -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;
@@ -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:

0 comments on commit b4883ee

Please sign in to comment.
You can’t perform that action at this time.