mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
[processing] Fix vector split alg
This commit is contained in:
parent
ee1236f067
commit
43a86808a2
@ -86,7 +86,7 @@ class VectorSplit(GeoAlgorithm):
|
||||
for current, i in enumerate(uniqueValues):
|
||||
fName = u'{0}_{1}.shp'.format(baseName, str(i).strip())
|
||||
|
||||
writer, dest, layer = vector.createVectorWriter(fName, None, fields, geomType, crs, context)
|
||||
writer, dest, _layer = vector.createVectorWriter(fName, None, fields, geomType, crs, context)
|
||||
for f in QgsProcessingUtils.getFeatures(layer, context):
|
||||
if f[fieldName] == i:
|
||||
writer.addFeature(f)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user