Skip to content

Commit

Permalink
A bit of repairs to vector tiles algorithm test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 4, 2021
1 parent 0bf6136 commit 9022f68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions python/plugins/processing/tests/AlgorithmsTestBase.py
Expand Up @@ -170,6 +170,12 @@ def load_param(self, param, id=None):
try:
if param['type'] in ('vector', 'raster', 'table'):
return self.load_layer(id, param).id()
elif param['type'] == 'vrtlayers':
vals = []
for p in param['params']:
p['layer'] = self.load_layer(None, {'type': 'vector', 'name': p['layer']})
vals.append(p)
return vals
elif param['type'] == 'multi':
return [self.load_param(p) for p in param['params']]
elif param['type'] == 'file':
Expand Down
Expand Up @@ -2242,9 +2242,11 @@ tests:
name: Generate vector tiles (Directory)
params:
LAYERS:
- layer: ../../../../../tests/testdata/lines.shp
- layer: ../../../../../tests/testdata/points.shp
- layer: ../../../../../tests/testdata/polys.shp
type: vrtlayers
params:
- layer: ../../../../../tests/testdata/lines.shp
- layer: ../../../../../tests/testdata/points.shp
- layer: ../../../../../tests/testdata/polys.shp
MAX_ZOOM: 3
MIN_ZOOM: 1
XYZ_TEMPLATE: '{z}/{x}/{y}.pbf'
Expand Down

0 comments on commit 9022f68

Please sign in to comment.