diff --git a/assets/render-timeout-fallback.mvt b/assets/render-timeout-fallback.mvt index ee74f5ac..9ef336ae 100644 Binary files a/assets/render-timeout-fallback.mvt and b/assets/render-timeout-fallback.mvt differ diff --git a/scripts/mvt-timeout-error.py b/scripts/mvt-timeout-error.py index a6b764b6..1b2e66ee 100755 --- a/scripts/mvt-timeout-error.py +++ b/scripts/mvt-timeout-error.py @@ -2,30 +2,36 @@ import mapbox_vector_tile +lines_list = [] + +# main diagonal line +lines_list.append({ "geometry":"LINESTRING (0 0, 4096 4096)"}) + +# diagonal lines +for i in range(4096/32, 4096, 4096/32): + start = i + end = 4096 - i + + lines_list.append({ "geometry":"LINESTRING (0 " + str(start) + ", " + str(end) + " 4096)" }) + lines_list.append({ "geometry":"LINESTRING (" + str(start) + " 0, 4096 " + str(end) + ")" }) + +# box lines +lines_list.append({ "geometry":"LINESTRING (0 0, 0 4096)"}) +lines_list.append({ "geometry":"LINESTRING (0 4096, 4096 4096)"}) +lines_list.append({ "geometry":"LINESTRING (4096 4096, 4096 0)"}) +lines_list.append({ "geometry":"LINESTRING (4096 0, 0 0)"}) + + tile = mapbox_vector_tile.encode([ { "name": "errorTileSquareLayer", - "features": [{ - "geometry":"POLYGON ((0 0, 0 4096, 4096 4096, 4096 0, 0 0))", - "properties":{ - "uid":123, - "foo":"bar", - "cat":"flew" - } - }] + "features": [{ "geometry":"POLYGON ((0 0, 0 4096, 4096 4096, 4096 0, 0 0))" }] }, { "name": "errorTileStripesLayer", - "features": [{ - "geometry":"LINESTRING(159 3877, -1570 3877)", - "properties":{ - "uid":1234, - "foo":"bar", - "cat":"flew" - } - }] + "features": lines_list } ]) -with open('./assets/render-timeout-fallback.mvt', 'w') as f: +with open('./assets/render-timeout-fallback.mvt', 'w+') as f: f.write(tile) \ No newline at end of file