tilemaker
tilemaker copied to clipboard
Generating only empty tiles from shapefiles
My aim is to create MVT tiles from a set of shapefiles using tilemaker.
I have created a config file as follows:-
{
"layers": {
"roads": {
"minzoom": 0,
"maxzoom": 20
},
"om_roads": {
"minzoom": 17,
"maxzoom": 20,
"write_to": "roads",
"source": "Road_om_wgs84_2d.shp",
"source_columns": [
"classifica",
"distname",
"roadnumber"
]
},
"vd_roads": {
"minzoom": 7,
"maxzoom": 18,
"write_to": "roads",
"source": "Road_vd_wgs84_2d.shp",
"source_columns": [
"featcode",
"roadnumber",
"distname"
]
}
},
"settings": {
"minzoom": 0,
"maxzoom": 20,
"basezoom": 20,
"include_ids": false,
"name": "Tilemaker example",
"version": "0.1",
"description": "Sample vector tiles for Tilemaker",
"compress": "gzip"
}
}
I created a pbf file covering the UK land area uk_land_osm.pbf and used the sample lua file from this repo. I am only interested in generating tiles with the roads from the shapefiles
I then run tilemaker with:-
tilemaker --config config.json --process process.lua --output ./tiles --verbose uk_land_osm.pbf
This appears to work fine as the directory tree is created and I can see PBF files. However they are all empty only containing the GZIP headers. Am I missing a step or configuration? The SHP files are in the WGS84 SRS.
Several robustness fixes have been added to the master branch. Could people check to see if it resolves this issue?
Did you succeed to make it work ? I can't find how to tile a shapefile boundaries with tilemaker...?
I am also looking for that....