2

I have a relatively large worldwide raster mbTiles file from which I want to convert individual countries into new mbtiles. Unfortunately i fail to use tilelive which is actually predestined for this purpose.

Has anyone ever run tilelive on an Ubuntu server and got the tilelive-copy command implemented? I only get the error message.

i am going to do the following:

  • installation of node js
  • installation of npm
  • npm install tilelive
  • npm install @mapbox/mbtiles
  • npm install mbtiles

After executing the command: tilelive-copy input.mbtiles ouput.mbtiles I only get the error message Error: Invalid tilesource protocol: mbtiles.

I have now tried different nodejs versions etc. Nothing leads to success.

Does anybody have an idea what the problem is or an alternative approach e.g. with GDAL?

Thanks!

1
  • I am not an expert on this, reading from the code it seems that your command does not trigger the right outcome from tilelive.auto() resulting in the error. so for some reason, tilelive can't see the @mapbox/mbtiles you installed. If you found a solution from this please post :) good luck
    – Faris
    Feb 3 at 8:49
0

It was ultimately a version problem. With NodeJS V 9.11.1 64 bit everything was possible without problems.

So:

  • Install NodeJS V 9.11.1 64 Bit
  • install npm
  • npm install -g @mapbox/tilelive @mapbox/mbtiles

and its works:

tilelive-copy --bounds="5.9559,45.818,10.4921,47.8084" 18.mbtiles switzerland_18.mbtiles

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.