unvt / washi

a capacity building material
Creative Commons Zero v1.0 Universal
1 stars 6 forks source link

rake tiles aborted #55

Closed taisukef closed 3 years ago

taisukef commented 3 years ago

I can't make asia/japan map data.

Rakefile

REGION = 'asia'
AREA = 'japan'
osmium extract --overwrite --polygon=extent/extent.geojson --output=src/extract.osm.pbf src/japan-latest.osm.pbf
[======================================================================] 100% 
osmium export --config conf/osmium-export-config.json --index-type=sparse_file_array --output-format=geojsonseq --output=- src/extract.osm.pbf | node conf/filter.js | tippecanoe --no-feature-limit --no-tile-size-limit --force --simplification=2 --maximum-zoom=15 --base-zoom=15 --hilbert --output=tiles.mbtiles
For layer 0, using name "tiles"
0 features, 10 bytes of geometry, 8 bytes of separate metadata, 0 bytes of string pool
Did not read any valid geometries
rake aborted!
Command failed with status (1): [osmium export --config conf/osmium-export-...]
/Users/fukuno/data/js/visualize/sh2/Rakefile:15:in `block in <top (required)>'
/Library/Ruby/Gems/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => tiles
(See full trace by running task with --trace)

I succeed when I try as "europe/albania" in Rakefile.

taisukef commented 3 years ago

I forgot make "extent.geojson". And set "center", "site_root" and "tiles" in "docs/style.json". image Thank you! It's solved!

hfu commented 3 years ago

Congratulations on your success, @taisukef !