Skip to content
Permalink
Browse files

A bit of repairs to vector tiles algorithm test

  • Loading branch information
nyalldawson committed Feb 8, 2021
1 parent 465fe14 commit 25886c30deb7af23bffeae2be3464f01e277f737
@@ -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':
@@ -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'

0 comments on commit 25886c3

Please sign in to comment.