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 coastlinesne_50m_coastline.geojson— Natural Earth 1:50m coastlinesne_110m_admin_0_countries.geojson— 1:110m countriesne_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 2Options:
--precision N— decimals of coordinate precision to keep (default2≈ 1 km resolution, plenty for world-scale plots).--only LAYER— restrict to one layer (e.g.coastline_50m).