treee111 / wahooMapsCreator

Create maps for Wahoo device based on latest OSM maps
GNU General Public License v3.0
259 stars 26 forks source link

PBF error: blob contains no data #142

Closed vti closed 2 years ago

vti commented 2 years ago

I am trying to generate a map for Spain with the following command:

python -m wahoomc cli -co spain

It fails what seems to be an osmosis error:

INFO:--------------------------------------------------------------------------------
INFO:# Input country: spain.
DEBUG:--------------------------------------------------------------------------------
DEBUG:# Read json file
DEBUG:+ Use json file /home/$USER/anaconda3/envs/gdal-user/lib/python3.7/site-packages/wahoomc/resources/json/europe/spain.json with 72 tiles
DEBUG:+ Read json file: OK
INFO:--------------------------------------------------------------------------------
INFO:# Determine involved/border countries
INFO:+ Involved country: spain
INFO:+ Involved country: algeria
INFO:+ Involved country: morocco
INFO:+ Involved country: gibraltar
INFO:+ Involved country: western_sahara
INFO:+ Involved country: andorra
INFO:+ Involved country: france
INFO:+ Involved country: portugal
INFO:+ Border countries will be processed
INFO:--------------------------------------------------------------------------------
INFO:# check land_polygons.shp file
INFO:+ check land_polygons.shp file: OK
INFO:--------------------------------------------------------------------------------
INFO:# check countries .osm.pbf files
INFO:+ Checking for old maps and remove them
INFO:+ mapfile for spain: up-to-date. Input: spain.
INFO:+ mapfile for algeria: up-to-date. Input: algeria.
INFO:+ mapfile for morocco: up-to-date. Input: morocco.
INFO:+ mapfile for spain: up-to-date. Input: gibraltar.
INFO:+ mapfile for morocco: up-to-date. Input: western_sahara.
INFO:+ mapfile for andorra: up-to-date. Input: andorra.
INFO:+ mapfile for france: up-to-date. Input: france.
INFO:+ mapfile for portugal: up-to-date. Input: portugal.
INFO:+ Check countries .osm.pbf files: OK
INFO:--------------------------------------------------------------------------------
INFO:# Filter tags from country osm.pbf files
INFO:+ Filter tags from country osm.pbf files: OK
INFO:--------------------------------------------------------------------------------
INFO:# Generate land
INFO:+ Generate land: OK
INFO:--------------------------------------------------------------------------------
INFO:# Generate sea
INFO:+ Generate sea: OK
INFO:--------------------------------------------------------------------------------
INFO:# Split filtered country files to tiles
INFO:+ Splitting tile 1 of 72 for Coordinates: 126,101 from map of spain
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-spain.o5m.pbf
INFO:+ Splitting tile 1 of 72 for Coordinates: 126,101 from map of algeria
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-algeria.o5m.pbf
INFO:+ Splitting tile 1 of 72 for Coordinates: 126,101 from map of morocco
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-morocco.o5m.pbf
INFO:+ Splitting tile 2 of 72 for Coordinates: 123,100 from map of spain
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-spain.o5m.pbf
INFO:+ Splitting tile 2 of 72 for Coordinates: 123,100 from map of morocco
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-morocco.o5m.pbf
INFO:+ Splitting tile 3 of 72 for Coordinates: 124,100 from map of spain
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-spain.o5m.pbf
INFO:+ Splitting tile 3 of 72 for Coordinates: 124,100 from map of morocco
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-morocco.o5m.pbf
INFO:+ Splitting tile 3 of 72 for Coordinates: 124,100 from map of gibraltar
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-gibraltar.o5m.pbf
INFO:+ Splitting tile 4 of 72 for Coordinates: 125,101 from map of spain
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-spain.o5m.pbf
INFO:+ Splitting tile 4 of 72 for Coordinates: 125,101 from map of morocco
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-morocco.o5m.pbf
INFO:+ Splitting tile 5 of 72 for Coordinates: 118,107 from map of spain
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-spain.o5m.pbf
INFO:+ Splitting tile 5 of 72 for Coordinates: 118,107 from map of morocco
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-morocco.o5m.pbf
INFO:+ Splitting tile 5 of 72 for Coordinates: 118,107 from map of western_sahara
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-western_sahara.o5m.pbf
INFO:+ Splitting tile 6 of 72 for Coordinates: 129,94 from map of spain
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-spain.o5m.pbf
INFO:+ Splitting tile 6 of 72 for Coordinates: 129,94 from map of andorra
INFO:/home/$USER/wahooMapsCreatorData/_tiles/filtered-andorra.o5m.pbf
INFO:+ Splitting tile 6 of 72 for Coordinates: 129,94 from map of france
DEBUG:subprocess:'PBF error: blob contains no data'
ERROR:! Error in Osmosis with country: {country}
vti commented 2 years ago

I tried another time forcing the re-download and it worked. I guess it was a remote issue.

treee111 commented 2 years ago

Hi, nice that you figured it out by yourself!

If the download interrupts, a file is saved without full content. -fd figures it out then 👍

vti commented 2 years ago

@treee111 thanks for your amazing work. It works really good. Now I don't have to stop, pull out my phone and check for the water fountains around, it's all on my Wahoo! :)