Coder Social home page Coder Social logo

seachartcreator's Introduction

SeaChartCreator

SeaChartCreator is based on python script. The script was developed and tested on system with following linux OS

  • Linux debian 11 / 64 bit

The need following external librarys / applications:

SeaChartCreator is using tiles from the OpenSeaMap Project and/or the Open Streetmap Project.

Open Sea Map https://openseamap.org/

Open Street Map: https://openstreetmap.org https://operations.osmfoundation.org/policies/tiles/

Please read and meet tile usage policy: https://operations.osmfoundation.org/policies/tiles/

All loaded tiles and generated maps stay under following license: "Creative Commons Attribution-Share Alike 2.0", CC-BY-SA-Lizenz

Instruction for the creation of KAP Files

Use Mobac [1] Software to select one or multiple areas for chart generation.

  • start the software
  • select a tile server e.g. OpenStreetMap 4UMaps.eu
  • select GridZoom 16 in upper area of the shown map
  • Create New Atlas Content PNG + Worldwide (PNG & PWG)
  • Set Menue -> Selection -> Selection Mode -> Rectangle
  • Select "15" in zoom level dialog, select multiple zoom levels where needed.
  • Use the Mouse to select a area for single chart
  • press "add selection" in the "atlas content" dialog
  • save the profile e.g. newatlas

note: the atlas will be stored in a xml file located in the mobac software directory (e.g. "C:\tools\Mobile Atlas Creator 2.0.0\mobac-profile-newatlas.xml").

clone project and call python scripts to create kap file of specific mobac project file

cd ~/
git clone https://github.com/stevo01/SeaChartCreator
cd SeaChartCreator

MAP_DESCR_FILE=./sample/atlas/osmcb/sea/osmcb-catalog-test.xml
MAPSOURCE="./sample/mapsource/mp-OpenSeaMap-Bravo.yaml"
DB_DIR="./cache/"

# fetch tiles
python3 fetch.py -m $MAPSOURCE -d $DB_DIR -q -s -f -i $MAP_DESCR_FILE

# merge tiles
python3 merge.py -d $DB_DIR -q -s -i $MAP_DESCR_FILE 

# build kap file
python3 build.py -t kap -d $DB_DIR -s -i $MAP_DESCR_FILE

# build mbtile file
python3 build.py -t mbtiles -d $DB_DIR -s -i $MAP_DESCR_FILE

notes:

  • the generated kap file is located in directory ./work/kap/
  • the generated mbtiles file is located in directory ./work/mbtiles/

bookmarks:

[1] http://mobac.sourceforge.net/

seachartcreator's People

Contributors

marcelrv avatar stevo01 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pgrawehr marcelrv

seachartcreator's Issues

Increase Niederlande mbtiles to cover whole Netherlands

Would be great if the current Niederlande-Binnen could be updated to include the whole of the Netherlands. Now it just excludes parts where I'm normally sailing (in the North around Terschellingen and in the south near zeeland)

The next map NorthSea covers the area as well but has less details available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.