tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Generating only empty tiles from shapefiles

Open citizenfish opened this issue 8 years ago • 3 comments

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.

citizenfish avatar Jan 17 '17 12:01 citizenfish

Several robustness fixes have been added to the master branch. Could people check to see if it resolves this issue?

TimSC avatar Aug 06 '17 08:08 TimSC

Did you succeed to make it work ? I can't find how to tile a shapefile boundaries with tilemaker...?

PaulArchambault avatar Dec 11 '18 16:12 PaulArchambault

I am also looking for that....

kathir-bit avatar May 19 '21 02:05 kathir-bit