Skip to content

Repository files navigation

MapLibre-Nautical

Sample image

Convert s57 ENC charts to vector tiles and render them in MapLibre / Mapbox. MapLibre can be included in various frontends like Qt, GLFW, iOS, Android, MacOS, Windows and more.

❗ The state of the style is early work in progress!

Worfklow

I am taking this excellent repo to convert to mbtiles and then generate the respective style to render all the information aproppriately. Some assets like fonts and icons come from here. The respective result can be view with tilserver-gl and the style can be improved using Maputnik, see the following section.

  1. git clone this repo
  2. git submodule update --init
  3. docker compose build
  4. docker compose run --rm convert_maps
  5. docker compose run --rm fetch_assets
  6. docker compose run --rm generate_mapstyle

Result

  • Start tileserver to view vector map with or without style applied:
    docker run --rm -v $(pwd)/output:/data -p 8080:8080 maptiler/tileserver-gl
  • Run Maputnik to work on the style:
    docker run --rm -it -p 8888:8888 maputnik/editor
    To load the generated style and map data, click on Openand under Load from URL paste this URL: http://localhost:8080/styles/light/style.json.

About

This repo aims to import electronic navigational charts (ENC) in the standard data format S-57 to be rendered in MapLibre-Native similar to an electronic chart display and information system (ECDIS).

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages