#tilemap #server #tile #map #vector #gis #layer

app earthwyrm-bin

Vector tile map server using MVT

3 unstable releases

0.6.1 Mar 4, 2024
0.6.0 Jan 19, 2024
0.5.0 Jan 11, 2024

#142 in Geospatial

Download history 5/week @ 2024-01-08 4/week @ 2024-01-15 17/week @ 2024-02-19 12/week @ 2024-02-26 145/week @ 2024-03-04 7/week @ 2024-03-11 59/week @ 2024-04-01

71 downloads per month

MIT/Apache

62KB
1.5K SLoC

EarthWyrm is an open-source map server developed for the Minnesota Department of Transportation (MnDOT). It can serve GIS data from OpenStreetMap or other sources.

Features:

  • Layers configurable by zoom level
  • Web Mercator projection (EPSG:3857)
  • Vector tiles in MVT format, with Z/X/Y.mvt naming convention
  • Quick setup in under 10 minutes

👉 Install using cargo (tested on Fedora Linux):

cargo install earthwyrm-bin
sudo bash
«enter password at prompt»
install ~/.cargo/bin/earthwyrm /usr/local/bin/
useradd --system -m -b /var/local earthwyrm
sudo -i -u earthwyrm /usr/local/bin/earthwyrm init

This file tree will be created:

/var/local/earthwyrm/
├── earthwyrm.muon
├── earthwyrm.service
├── loam/
└── osm/

👉 Edit the configuration file at /var/local/earthwyrm/earthwyrm.muon. It contains examples and instructions.

👉 Download an OpenStreetMap extract of your region in PBF format into the /var/local/earthwyrm/osm/ directory. For example, files such as minnesota-latest.osm.pbf are provided daily from Geofabrik.

👉 Dig the configured layers into .loam cache files:

sudo -i -u earthwyrm /usr/local/bin/earthwyrm dig

NOTE: This step may take a while, depending on the region size.

👉 Configure systemd service

cp /var/local/earthwyrm/earthwyrm.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable earthwyrm
systemctl start earthwyrm

👉 Test

From the server host, browse to 127.0.0.1:3030

Dependencies

~15MB
~259K SLoC