kosmtik / kosmtik

Make maps with OpenStreetMap and Mapnik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error exporting Tiles, no Tiles are being exported

d3netxer opened this issue · comments

I added the kosmtik-tiles-export plugin and used the following command:

kosmtik export project.mml --format png --output /openstreetmap-carto/tiles --minZoom 3 --maxZoom 10

It said it exported project to /openstreetmap-carto/tiles but there is nothing inside of this folder. This is the output from the command:

root@01e32f5d8c32:/openstreetmap-carto# kosmtik export project.mml --format png --output /openstreetmap-carto/tiles --minZoom 3 --maxZoom 10
[Core] Loading config from /root/.config/kosmtik.yml
[Core] Loading plugin from ../plugins/base-exporters/index.js
[Core] Loading plugin from ../plugins/hash/index.js
[Core] Loading plugin from ../plugins/local-config/index.js
[Core] Loading plugin from ../plugins/datasource-loader/index.js
[Core] Loading plugin from kosmtik-overpass-layer
[Core] Loading plugin from kosmtik-fetch-remote
[Core] Loading plugin from kosmtik-overlay
[Core] Loading plugin from kosmtik-open-in-josm
[Core] Loading plugin from kosmtik-map-compare
[Core] Loading plugin from kosmtik-osm-data-overlay
[Core] Loading plugin from kosmtik-mapnik-reference
[Core] Loading plugin from kosmtik-geojson-overlay
[Core] Loading plugin from kosmtik-tiles-export
[Core] Loading project from project.mml
[Core] Creating metatiles cache dir tmp/openstreetmap-carto/meta
[Core] Deleting previous metatiles tmp/openstreetmap-carto/meta
[Core] Created vector cache dir tmp/openstreetmap-carto/vector
[Local Config] Unable to load local config from /openstreetmap-carto/localconfig.js
[Error: File not found: /openstreetmap-carto/localconfig.js]
[Fetch Remote] Done.
[Core] Generating Mapnik XML…
[Core] Using mapnik version 3.0.20
Mapnik LOG> 2018-09-25 17:21:50: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
Mapnik LOG> 2018-09-25 17:21:50: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2018-09-25 17:21:50: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
Mapnik LOG> 2018-09-25 17:21:50: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2018-09-25 17:21:50: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
Mapnik LOG> 2018-09-25 17:21:50: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
Exported project to /openstreetmap-carto/tiles

--format png

This will not export tiles but a single PNG map.

Here is an example of tiles export command from my history:

kosmtik export forte.yml --format tiles --output tmp/export --tileFormat 'png8' --minZoom 17 --maxZoom 17 --workers 3 --bounds 1.1755,48.8268,2.3895,49.4413 --tileSize 1024 --metatile 2

Thanks @yohanboniface, this seemed to have worked for exporting tiles!

On another note, I have tried the kosmtik-mbtiles-export plugin next. Here is the command I used: kosmtik export project.mml --format mbtiles --output export/output.mbtiles --tileformat 'png' --minZoom 3 --maxZoom 8 --workers 4 --tileSize 256 --metatile 2 --bounds 2.361392,30.824890,3.692966,33.441010

It seems to output the file, but it never exits out of the console. Here is the output:

root@81a0289c715d:/openstreetmap-carto# kosmtik export project.mml --format mbtiles --output export2/output5.mbtiles --tileformat 'png' --minZoom 3 --maxZoom 8 --workers 4 --tileSize 256 --metatile 2 --bounds 2.361392,30.824890,3.692966,33.441010
[Core] Loading config from /root/.config/kosmtik.yml
[Core] Loading plugin from ../plugins/base-exporters/index.js
[Core] Loading plugin from ../plugins/hash/index.js
[Core] Loading plugin from ../plugins/local-config/index.js
[Core] Loading plugin from ../plugins/datasource-loader/index.js
[Core] Loading plugin from kosmtik-overpass-layer
[Core] Loading plugin from kosmtik-fetch-remote
[Core] Loading plugin from kosmtik-overlay
[Core] Loading plugin from kosmtik-open-in-josm
[Core] Loading plugin from kosmtik-map-compare
[Core] Loading plugin from kosmtik-osm-data-overlay
[Core] Loading plugin from kosmtik-mapnik-reference
[Core] Loading plugin from kosmtik-geojson-overlay
[Core] Loading plugin from kosmtik-tiles-export
[Core] Loading plugin from kosmtik-mbtiles-export
[Core] Loading project from project.mml
[Core] Creating metatiles cache dir tmp/openstreetmap-carto/meta
[Core] Deleting previous metatiles tmp/openstreetmap-carto/meta
[Core] Created vector cache dir tmp/openstreetmap-carto/vector
[Local Config] Unable to load local config from /openstreetmap-carto/localconfig.js
[Error: File not found: /openstreetmap-carto/localconfig.js]
[Fetch Remote] Done.
[Export] Starting MBTiles export to export2/output5.mbtiles
[Export] Starting MBTiles export, with bounds -180 -85.05112877980659 180 85.05112877980659 and from zoom 3 to 8
[Core] Generating Mapnik XML…
[Core] Using mapnik version 3.0.20
[Core] Loading map…
[Core] Map ready
[Export] Processing zoom 3
[Export] 72 tiles to process
[Export] Processing zoom 4
[Export] 272 tiles to process
[Export] Processing zoom 5
[Export] 1056 tiles to process
[Export] Processing zoom 6
[Export] 4160 tiles to process
[Export] Processing zoom 7
[Export] 16512 tiles to process
[Export] Processing zoom 8
[Export] 65792 tiles to process
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
Mapnik LOG> 2018-10-11 16:55:37: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'

Also, I was wondering, why the console states the bounds are -180 -85.05112877980659 180 85.05112877980659 and from zoom 3 to 8. These are different than the bounds I have in my command line.