https://github.com/consbio/tpkutils

 

 

1) get pip 

                curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

 

 

2) install pip

 

                python3 get-pip.py

 

 

3) install tpkutils

 

                pip install git+https://github.com/consbio/tpkutils.git --upgrade

 

 

4) create a python file, save as tpk_to_mbtiles.py

 

                               

 

from tpkutils import TPK

 

tpk = TPK('/Volumes/f/gis_data/tpk/cont_tpk.tpk')

 

tpk.to_mbtiles('test1.mbtiles')

 

# close when done

tpk.close()

 

 

 

5) run .py file

                 python3 tpk_to_mbitles.py

 

6) test1.mbtiles are generated at same directory

 

by

Please log in or register