Skip to main content

Module landmask

Module landmask 

Source
Expand description

A presentation-only coastline overlay for the terminal map.

This is intentionally a presentation aid, not a scientific land/sea mask. The vendored 1:110m Natural Earth land topology from world-atlas is decoded by build.rs into ordinary lon/lat polygons. It is deliberately not used as a scientific land/sea mask: dataset-provided masks and coordinates remain authoritative. A coarse fallback remains available if the generated asset is unavailable during a development build.

Enums§

Detail
PolygonIter
Return the lazily selected Natural Earth rings for a presentation layer. The map renderer uses these filled rings; scientific masking still comes exclusively from the dataset’s validity values.

Functions§

cell_is_border
cell_is_border_grid
Return whether an ocean cell borders land using the displayed coordinate grid. This preserves geographic framing for zoomed regular grids and for curvilinear 2-D latitude/longitude coordinates.
cell_is_border_grid_with_detail
cell_is_border_with_detail
detail_for_grid
is_land
is_land_with_detail
polygons_for_detail