mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
[processing] Remove unused options argument from (create/get)VectorWriter
This commit is contained in:
parent
8e70aa84fa
commit
ee1236f067
@ -360,7 +360,7 @@ class OutputVector(Output):
|
|||||||
self.compatible = getTempFilenameInTempFolder(self.name + '.' + ext)
|
self.compatible = getTempFilenameInTempFolder(self.name + '.' + ext)
|
||||||
return self.compatible
|
return self.compatible
|
||||||
|
|
||||||
def getVectorWriter(self, fields, geomType, crs, context, options=None):
|
def getVectorWriter(self, fields, geomType, crs, context):
|
||||||
"""Returns a suitable writer to which features can be added as
|
"""Returns a suitable writer to which features can be added as
|
||||||
a result of the algorithm. Use this to transparently handle
|
a result of the algorithm. Use this to transparently handle
|
||||||
output values instead of creating your own method.
|
output values instead of creating your own method.
|
||||||
@ -384,7 +384,7 @@ class OutputVector(Output):
|
|||||||
settings = QgsSettings()
|
settings = QgsSettings()
|
||||||
self.encoding = settings.value('/Processing/encoding', 'System', str)
|
self.encoding = settings.value('/Processing/encoding', 'System', str)
|
||||||
|
|
||||||
w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context, options)
|
w, w_dest, w_layer = createVectorWriter(self.value, self.encoding, fields, geomType, crs, context)
|
||||||
self.layer = w_layer
|
self.layer = w_layer
|
||||||
self.value = w_dest
|
self.value = w_dest
|
||||||
return w
|
return w
|
||||||
|
|||||||
@ -456,7 +456,7 @@ NOGEOMETRY_EXTENSIONS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def createVectorWriter(destination, encoding, fields, geometryType, crs, context, options=None):
|
def createVectorWriter(destination, encoding, fields, geometryType, crs, context):
|
||||||
layer = None
|
layer = None
|
||||||
sink = None
|
sink = None
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user