@@ -134,7 +134,8 @@ def test_support_in_place_edit(self):
134
134
Z_ONLY = {t : t .find ('Z' ) > 0 for t in _all_true ().keys ()}
135
135
M_ONLY = {t : t .rfind ('M' ) > 0 for t in _all_true ().keys ()}
136
136
NOT_M = {t : t .rfind ('M' ) < 1 and t != 'NoGeometry' for t in _all_true ().keys ()}
137
- POLYGON_ONLY = {t : t in ('Polygon' , 'MultiPolygon' ) for t in _all_true ().keys ()}
137
+ POLYGON_ONLY = {t : t .find ('Polygon' ) for t in _all_true ().keys ()}
138
+ POLYGON_ONLY_NOT_M_NOT_Z = {t : t in ('Polygon' , 'MultiPolygon' ) for t in _all_true ().keys ()}
138
139
MULTI_ONLY = {t : t .find ('Multi' ) == 0 for t in _all_true ().keys ()}
139
140
SINGLE_ONLY = {t : t .find ('Multi' ) == - 1 for t in _all_true ().keys ()}
140
141
LINESTRING_AND_POLYGON_ONLY = {t : (t .find ('LineString' ) >= 0 or t .find ('Polygon' ) >= 0 ) for t in _all_true ().keys ()}
@@ -151,9 +152,9 @@ def test_support_in_place_edit(self):
151
152
self ._support_inplace_edit_tester ('native:explodelines' , LINESTRING_ONLY )
152
153
self ._support_inplace_edit_tester ('native:extendlines' , LINESTRING_ONLY )
153
154
self ._support_inplace_edit_tester ('native:fixgeometries' , NOT_M )
154
- self ._support_inplace_edit_tester ('native:minimumenclosingcircle' , POLYGON_ONLY )
155
- self ._support_inplace_edit_tester ('native:multiringconstantbuffer' , POLYGON_ONLY )
156
- self ._support_inplace_edit_tester ('native:orientedminimumboundingbox' , POLYGON_ONLY )
155
+ self ._support_inplace_edit_tester ('native:minimumenclosingcircle' , POLYGON_ONLY_NOT_M_NOT_Z )
156
+ self ._support_inplace_edit_tester ('native:multiringconstantbuffer' , POLYGON_ONLY_NOT_M_NOT_Z )
157
+ self ._support_inplace_edit_tester ('native:orientedminimumboundingbox' , POLYGON_ONLY_NOT_M_NOT_Z )
157
158
self ._support_inplace_edit_tester ('qgis:orthogonalize' , LINESTRING_AND_POLYGON_ONLY )
158
159
self ._support_inplace_edit_tester ('native:removeduplicatevertices' , GEOMETRY_ONLY )
159
160
self ._support_inplace_edit_tester ('native:rotatefeatures' , GEOMETRY_ONLY )
@@ -174,6 +175,7 @@ def test_support_in_place_edit(self):
174
175
self ._support_inplace_edit_tester ('native:difference' , GEOMETRY_ONLY )
175
176
self ._support_inplace_edit_tester ('native:dropgeometries' , ALL )
176
177
self ._support_inplace_edit_tester ('native:splitwithlines' , LINESTRING_AND_POLYGON_ONLY )
178
+ self ._support_inplace_edit_tester ('native:buffer' , POLYGON_ONLY_NOT_M_NOT_Z )
177
179
178
180
def _make_compatible_tester (self , feature_wkt , layer_wkb_name , attrs = [1 ]):
179
181
layer = self ._make_layer (layer_wkb_name )
0 commit comments