Skip to content
Permalink
Browse files

[processing] use complex delimiter for interpolation data to avoid

overlaps with charactes which can be used in the layers source URI (fix #20490)

(cherry picked from commit 17fd86e)
  • Loading branch information
alexbruy committed Jan 22, 2019
1 parent 3de1550 commit 255d51041c6b1ca7a0226da40d3281d1dc83ec0b
@@ -129,7 +129,7 @@ def processAlgorithm(self, parameters, context, feedback):

layerData = []
layers = []
for row in interpolationData.split(';'):
for row in interpolationData.split('::|::'):
v = row.split('::~::')
data = QgsInterpolator.LayerData()

@@ -145,7 +145,7 @@ def processAlgorithm(self, parameters, context, feedback):
layerData = []
layers = []
crs = QgsCoordinateReferenceSystem()
for row in interpolationData.split(';'):
for row in interpolationData.split('::|::'):
v = row.split('::~::')
data = QgsInterpolator.LayerData()

@@ -203,10 +203,10 @@ def value(self):
else:
inputType = QgsInterpolator.SourceBreakLines

layers += '{}::~::{:d}::~::{:d}::~::{:d};'.format(layer.source(),
interpolationSource,
fieldIndex,
inputType)
layers += '{}::~::{:d}::~::{:d}::~::{:d}::|::'.format(layer.source(),
interpolationSource,
fieldIndex,
inputType)
return layers[:-1]


0 comments on commit 255d510

Please sign in to comment.
You can’t perform that action at this time.