Boundary alg cannot run in-place mode

This commit is contained in:
Nyall Dawson 2018-10-05 15:44:51 +10:00
parent 10095ce0ef
commit 57fcf439ba
2 changed files with 3 additions and 7 deletions

View File

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

View File

@ -167,7 +167,7 @@ class TestQgsProcessingInPlace(unittest.TestCase):
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)