mix bland.basemaps.compile (Elixir Technical Drawing v0.3.0)

Copy Markdown View Source

Reads GeoJSON files from priv/basemaps/source/ and emits Elixir data modules to lib/bland/basemaps/data/.

The compiled output is committed to the repository so downstream users never need to run this task — it's only re-run when the upstream data is updated.

Source files expected

  • ne_110m_coastline.geojson — Natural Earth 1:110m coastlines
  • ne_50m_coastline.geojson — Natural Earth 1:50m coastlines
  • ne_110m_admin_0_countries.geojson — 1:110m countries
  • ne_50m_admin_0_countries.geojson — 1:50m countries

All four are public-domain Natural Earth data; download from https://github.com/nvkelso/natural-earth-vector/tree/master/geojson.

Usage

mix bland.basemaps.compile           # all layers
mix bland.basemaps.compile --precision 2

Options:

  • --precision N — decimals of coordinate precision to keep (default 2 ≈ 1 km resolution, plenty for world-scale plots).
  • --only LAYER — restrict to one layer (e.g. coastline_50m).