mvt timeout error creation script

This commit is contained in:
Simon Martín
2017-11-03 17:21:01 +01:00
parent da87a95dd9
commit ac153232d0
2 changed files with 32 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env python
import mapbox_vector_tile
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"
}
}]
},
{
"name": "air",
"features": [{
"geometry":"LINESTRING(159 3877, -1570 3877)",
"properties":{
"uid":1234,
"foo":"bar",
"cat":"flew"
}
}]
}
])
with open('./assets/render-timeout-fallback.mvt', 'w+') as f:
f.write(repr(tile))