Skip to content

OpenSeaCharts/osc-tiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSeaCharts Tiles

The scope of this repository is tile generation based on the OpenSeaCharts tile schema.

Tip

You can download generated .osm.pbf, .mbtiles and .pmtiles files:

Raw tiles showcase

Usage

There are different ways to use the vector tiles.

PMTiles

PMTiles is a relatively new concept where no tile server is required. You can either download a pmtiles file and use it locally or use it directly from a web server that supports HTTP range requests. There is an online Style Editor with PMTiles support available.

MBTiles

You can download the generated MBTiles archives for offline usage.

Host your own tile server

If loading times are important to you, you can serve the tiles with your own tile server. Here are some example tile servers you can use:

Generate your own tiles

Fetch data from OSM

Both scrips require osmctools to be installed.

sudo apt install -y osmctools
Create a new seamarks.osm.pbf file
  • Use ./osm/create.sh to generate a new file.
  • This will take a long time download, convert and extract data.
  • You need to have at least 200GB free disk space.
Update an existing seamarks.osm.pbf file
  • Use ./osm/update.sh to update a file.
  • Do not use this to update a file that is outdated multiple weeks, create a new file instead.

Vector MBTiles generation

We use tilemaker to split OSM data into Mapbox Vector Tiles that get stored in an MBTiles archive. All necessary files are located in ./tilemaker.

Tilemaker requires the --skip-integrity flag to run successfully (docs).

Development

The tile schema is defined via tilemaker config files:

References

About

OpenSeaCharts Tile Schema

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •