mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Boundary alg cannot run in-place mode
This commit is contained in:
parent
10095ce0ef
commit
57fcf439ba
@ -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();
|
||||
}
|
||||
|
||||
QgsBoundaryAlgorithm *QgsBoundaryAlgorithm::createInstance() const
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user