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.
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
Seamarks
vectortiles-generator from OpenSeaMap project
National Charting Information
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.