Skip to content
Permalink
Browse files

Disable assign projection in-place

  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent 0380c06 commit 48fa5e83a849c59307cb081bd850a1052bf36b20
@@ -62,6 +62,12 @@ QgsAssignProjectionAlgorithm *QgsAssignProjectionAlgorithm::createInstance() con
return new QgsAssignProjectionAlgorithm();
}

bool QgsAssignProjectionAlgorithm::supportInPlaceEdit( const QgsVectorLayer *layer ) const
{
Q_UNUSED( layer );
return false;
}

void QgsAssignProjectionAlgorithm::initParameters( const QVariantMap & )
{
addParameter( new QgsProcessingParameterCrs( QStringLiteral( "CRS" ), QObject::tr( "Assigned CRS" ), QStringLiteral( "EPSG:4326" ) ) );
@@ -41,6 +41,7 @@ class QgsAssignProjectionAlgorithm : public QgsProcessingFeatureBasedAlgorithm
QString groupId() const override;
QString shortHelpString() const override;
QgsAssignProjectionAlgorithm *createInstance() const override SIP_FACTORY;
bool supportInPlaceEdit( const QgsVectorLayer *layer ) const override;

protected:

0 comments on commit 48fa5e8

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