Generate Finnish nautical charts in Mapbox vector tile format or rasterize your custom PNG tiles.
Please read Github issue #17 for more information on problematic data and S-57 differences!
Scripts and chart style progress is very much stalled and the charts produced are missing relevant information!
Lähde: Liikennevirasto. Ei navigointikäyttöön. Ei täytä virallisen merikartan vaatimuksia.
Contains information received from the Finnish Transport Agency’s nautical chart database 04/2020
Contains data from the National Land Survey of Finland Topographic Database 04/2020
- Install Docker
- Install PostGIS
- Install NodeJS 10.x (mapbox-gl-native does not exist for newer nodejs versions: mapbox/mapbox-gl-native#16485)
- Run
npm install
TODO: Use PostgreSQL in Docker?
With psql -U postgres
:
CREATE DATABASE merikartta;
\c merikartta
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_raster;
CREATE EXTENSION postgis_topology;
CREATE EXTENSION fuzzystrmatch;
CREATE EXTENSION postgis_tiger_geocoder;
Run import/fetch-csv-from-vayla.sh
Data set is quite big, nearly 1.5 GB.
Run node import/convert-csv-to-geojson.js
This should take some minutes.
Run import/fetch-geojson-from-mml.js
Run import/calculate-taululinja-overlap.js
Run import/prepare-geojson-data.sh
This will take some time, especially the first step when generating syvyysalueet-dissolved-white.geojson
file. Running the Mapshaper commands in parallel will speed up the process.
Run import/import-data-to-psql.js
Build and watch preview client files using Parcel:
npm run watch
TODO
TODO
TODO
Merikartta-aineistojen tietosisällön kuvaus
Vesiväyläaineistojen tietosisällön kuvaus
Maanmittauslaitoksen maastotietokohteet
Maanmittauslaitoksen maastokartta-aineiston koodit
- Edit Mapbox style json: TODO
- Edit fonts / glyphs: TODO
- Edit SVG-sprites: TODO
- Edit OpenLayers conversion
MIT
Please note that the nautical and topographical data sources are not part of this repository and have their own licenses.