Skip to content

go-spatial/tegola-openseamap

Repository files navigation

tegola-openseamap

OpenSeaMap implementation using Tegola

This repo houses instructions and configuration files to aid with standing up a tegola-based vector tile server that mimics the OpenSeaMap project. It builds on earlier work with OpenStreetMap data.

Repo config files

  • seamark.json - an imposm3 mapping file for the OSM PBF file.
  • seamark.toml - a tegola configuration file for the OSM import produced by imposm3.
  • mapbox.json - a Mapbox GL JS Style sheet with seamark extensions

Dependencies

Creating the osm_seamap database

imposm3 import -connection postgis://user:password@host:port/osm_seamark -mapping seamark.json -read path/to/your-planet.osm.pbf -write
imposm3 import -connection postgis://user:password@host:port/osm_seamark -mapping seamark.json -deployproduction

Resources

National Charting Information

Setting database connections with environment variables

It can be desirable to use separate databases for a tegola installation. For example, even though you may have OpenStreetMap data for multiple metro or Geofabrik extracts, you'll likely only need one copy of the OSM land polygons and Natural Earth Data.

Starting with tegola v0.6.0, environment variables can be used to configure database connection information. Copy .env-example to .env and customize away. A Procfile is included for those who use tools that recognize it, such as foreman, clones such as node-foreman or Python's honcho, or the Heroku Command Line Interface which bundles it.

For example, for non-production use, you should be able to:

npm install foreman -g
nf start

Of course, you may use your preferred way of including environment variables from a file.

About

OpenSeaMap implementation using Tegola

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published