tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Output not work

Open RuyVictor opened this issue 1 year ago • 7 comments

WSL - Ubuntu

Layer place (z0-14) Layer boundary (z0-14) Layer poi (z12-14) Layer poi_detail (z14-14) -> poi Layer housenumber (z14-14) Layer waterway (z8-14) Layer waterway_detail (z12-14) -> waterway Layer transportation (z4-14) Layer transportation_name (z8-14) Layer transportation_name_mid (z12-14) -> transportation_name Layer transportation_name_detail (z14-14) -> transportation_name Layer building (z13-14) Layer water (z6-14) Layer ocean (z0-14) -> water Layer water_name (z14-14) Layer water_name_detail (z14-14) -> water_name Layer aeroway (z11-14) Layer aerodrome_label (z10-14) Layer park (z11-14) Layer landuse (z4-14) Layer urban_areas (z4-8) -> landuse Layer landcover (z0-14) Layer ice_shelf (z0-9) -> landcover Layer glacier (z2-9) -> landcover Layer mountain_peak (z11-14) Bounding box -74.0231, -35.4655, -27.6725, 5.5229 Reading .shp ocean Unable to open coastline/water_polygons.shp or coastline/water_polygons.SHP in rb mode. Reading .shp urban_areas Unable to open landcover/ne_10m_urban_areas/ne_10m_urban_areas.shp or landcover/ne_10m_urban_areas/ne_10m_urban_areas.SHP in rb mode. Reading .shp ice_shelf Unable to open landcover/ne_10m_antarctic_ice_shelves_polys/ne_10m_antarctic_ice_shelves_polys.shp or landcover/ne_10m_antarctic_ice_shelves_polys/ne_10m_antarctic_ice_shelves_polys.SHP in rb mode. Reading .shp glacier Unable to open landcover/ne_10m_glaciated_areas/ne_10m_glaciated_areas.shp or landcover/ne_10m_glaciated_areas/ne_10m_glaciated_areas.SHP in rb mode. Sorting loaded shapes Reading .pbf brazil_latest.osm.pbf lua runtime error: resources/process-openmaptiles.lua:123: attempt to call global 'Find' (a nil value) terminate called after throwing an instance of 'kaguya::LuaTypeMismatch' what(): type mismatch!! Aborted

RuyVictor avatar Nov 11 '24 18:11 RuyVictor

sudo tilemaker --input brazil_latest.osm.pbf --output brazil.mbtiles --process resources/process-openmaptiles.lua --config resources/config-openmaptiles.json

RuyVictor avatar Nov 11 '24 18:11 RuyVictor

Where you're seeing errors like "Unable to open coastline/water_polygons.shp" it just means you haven't downloaded the data it needs - see https://github.com/systemed/tilemaker/blob/master/README.md#coastline-and-landcover . I also wouldn't expect you to need to run tilemaker as root.

One more question - what version of Ubuntu is it in WSL? (typing "lsb_release -a" will tell you).

SomeoneElseOSM avatar Nov 11 '24 19:11 SomeoneElseOSM

@SomeoneElseOSM I would like to thank you for your feedback, it really works. But I think it would be ideal if these items were already built into tilemaker, as soon as tilemaker starts, first perform a pending check like "It is necessary to download the add-ons for tilemaker to work correctly". This would run all .sh files

RuyVictor avatar Nov 11 '24 20:11 RuyVictor

Reading shapefile ocean Reading shapefile urban_areas Reading shapefile ice_shelf Reading shapefile glacier Generated points: 0, lines: 0, polygons: 2742 Reading .pbf brazil_latest.osm.pbf (Scanning for ways used in relations: 97%) (547 ms) Block 35805/35806 (10932 ms) SortedNodeStore: 160956 groups, 4251240 chunks, 286433739 nodes, 1493571440 bytes (2.7% wasted) Block 2708/2709 (89275 ms) SortedWayStore: 19928 groups, 1211080 chunks, 17451015 ways, 295942252 nodes, 814797806 bytes Block 42/43 (50228 ms) Generated points: 1156998, lines: 553, polygons: 3374342 Attributes: 1761480 sets from 27284480 objects (8991744 uncached), 18209792 pairs (6870016 uncached) Creating mbtiles at brazil.mbtiles indexed 304020 contended objects osm: finalizing z6 tile 4096/4096 (3227 ms) osm: finalizing z6 tile 4096/4096 (0 ms) indexed 0 contended objects shp: finalizing z6 tile 4096/4096 (1 ms) shp: finalizing z6 tile 4096/4096 (0 ms) collecting tiles: 701ms, filtering tiles: z0 (1, 0ms) z1 (2, 0ms) z2 (2, 0ms) z3 (4, 0ms) z4 (12, 0ms) z5 (35, 0ms) z6 (112, 0ms) z7 (421, 0ms) z8 (1598, 0ms) z9 (6041, 1ms) z10 (23347, 5ms) z11 (91866, 29ms) z12 (362329, 119ms) z13 (1430891, 525ms) z14 (5630467, 1960ms) z6/31/35, writing tile 7547128 of 7547128 Filled the tileset with good things at brazil.mbtiles

RuyVictor avatar Nov 11 '24 20:11 RuyVictor

It's not really "necessary to download the add-ons for tilemaker to work correctly" - in all cases what you need to download depends on what map style you're using and what data it needs.

SomeoneElseOSM avatar Nov 11 '24 20:11 SomeoneElseOSM

Could you confirm where you downloaded brazil-latest.osm.pbf and if you’ve processed it at all before running tilemaker?

Are you running the latest code checked out from git, or the 3.0 release?

But I think it would be ideal if these items were already built into tilemaker, as soon as tilemaker starts,

That’d be lovely but it would require someone with a knowledge of putting stuff in the right Unix paths and that person is not me :)

systemed avatar Nov 11 '24 21:11 systemed

@systemed Hey friend, I compiled directly from the Master branch, downloaded the map from MapFabrik, and didn't do any processing beforehand. But I had an idea that could help this project a lot, would be to define the quality of png/jpg during the compilation of tilemaker, mbtiles generated by tilemaket is ideally light, but it would be nice to have an option like that

RuyVictor avatar Nov 21 '24 13:11 RuyVictor