atlasr icon indicating copy to clipboard operation
atlasr copied to clipboard

Make a command to install the tile database

Open yanganto opened this issue 6 years ago • 4 comments

When I set up all servers and go to http://127.0.0.1:8889, the browser say that /api/tile/metadata.json is missing. It returns 404 with "error" in the body.

I trace the code and find this error, DatabaseError(__Unknown, "file is not a database"), at line 171in source/api/tile/src/main.rs

How can I fix this issue? Thanks.

yanganto avatar Dec 11 '18 14:12 yanganto

Did you install the mbtiles database?

oh sorry it's commented, https://github.com/atlasr-org/atlasr/blob/master/justfile#L104. I need to release that correctly!

Hywan avatar Dec 11 '18 15:12 Hywan

I try to download the mbtiles with following command. https://openmaptiles.com/download/WyJjOWUzNGM1NS04MDQxLTQ4MTMtYmUzMy0yNmFjMGUyN2I5MWIiLCItMSIsODcxM10.DsGknA.wk4qsZRjBSL8gQrp22h2CRpCyi4/osm-2017-07-03-v3.6.1-europe_switzerland.mbtiles?usage=open-source' > database/europe_switzerland.mbtiles. But the download link is expired.

I may know how to download it, register and download from https://openmaptiles.com/downloads/tileset/osm/europe/switzerland/.

yanganto avatar Dec 17 '18 13:12 yanganto

I can correctly set up this map viewer, thanks for your help.

yanganto avatar Dec 17 '18 15:12 yanganto

It may be a good way to check the .mbtiles file, and prompt to help the user to download it.
And I am happy to write the check in just file.

yanganto avatar Dec 17 '18 15:12 yanganto