Skip to content

Instantly share code, notes, and snippets.

@marcelrv
Last active December 10, 2020 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelrv/766e4bce7131c3a5853409a55a6f8a59 to your computer and use it in GitHub Desktop.
Save marcelrv/766e4bce7131c3a5853409a55a6f8a59 to your computer and use it in GitHub Desktop.
Installing and creating mbtiles with SeaChartCreator

SeaChartCreator

git clone https://github.com/stevo01/SeaChartCreator.git
git clone https://github.com/stevo01/imgkap.git

sudo apt-get install imagemagick-common

apt-get install libgraphicsmagick1-dev ? needed?

#needed to make imgkap:

sudo apt-get install libfreeimage-dev

#needed as well

sudo apt-get install montage
sudo apt-get install p7zip-full`

#making & installimg imgkap

cd imgkap
make
sudo make install

#change paths

nano Utils/ProcessCmd.py

edit:

MONTAGE_APP = "/usr/bin/montage"
IMGKAP_APP = "/usr/local/bin/imgkap"

run it

python3 fetch.py -i ./sample/atlas/mobac/mobac-profile-testprj.xml

note, this creates the working database in ./work/database

#this is the key step to allow mbtiles!!!!!! not in the readme. Note, not sure if fetch is actually needed for making the mbtiles

python3 merge.py -i ./sample/atlas/mobac/mobac-profile-testprj.xml

#create the mbtile file

python3 build.py -t mbtiles -i ./sample/atlas/mobac/mobac-profile-testprj.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment