Skip to content
Permalink
Browse files

Merge pull request #8121 from nyalldawson/no_boundary

Boundary alg cannot run in-place mode
  • Loading branch information
elpaso committed Oct 5, 2018
2 parents 2f89139 + 57fcf43 commit 223a87fbc536d0fa5056023f67f47f18ade7643c
@@ -63,13 +63,9 @@ QList<int> QgsBoundaryAlgorithm::inputLayerTypes() const
return QList<int>() << QgsProcessing::TypeVectorLine << QgsProcessing::TypeVectorPolygon;
}

bool QgsBoundaryAlgorithm::supportInPlaceEdit( const QgsMapLayer *l ) const
bool QgsBoundaryAlgorithm::supportInPlaceEdit( const QgsMapLayer * ) const
{
const QgsVectorLayer *layer = qobject_cast< const QgsVectorLayer * >( l );
if ( !layer )
return false;

return layer->isSpatial();
return false;
}

QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance() const
@@ -167,7 +167,7 @@ def test_support_in_place_edit(self):
self._support_inplace_edit_tester('native:swapxy', GEOMETRY_ONLY)
self._support_inplace_edit_tester('qgis:linestopolygons', NONE)
self._support_inplace_edit_tester('qgis:polygonstolines', NONE)
self._support_inplace_edit_tester('native:boundary', GEOMETRY_ONLY)
self._support_inplace_edit_tester('native:boundary', NONE)
self._support_inplace_edit_tester('native:clip', GEOMETRY_ONLY)
self._support_inplace_edit_tester('native:difference', GEOMETRY_ONLY)
self._support_inplace_edit_tester('native:dropgeometries', ALL)

0 comments on commit 223a87f

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