pub fn bake_land_cache(
chart: &ChartStore,
out: Option<&Path>,
) -> Result<PathBuf, LandCacheError>Expand description
Bakes a land cache for chart, covering whatever area
detect_coverage_area finds plus RASTER_PADDING_DEG, and
writes it to <chart.path()>.hazcache (or out, if given) – run
once, ahead of time, by enc-check bake, never at route-query time.
The region is detected from the chart itself, not named by a caller:
see detect_coverage_area’s own doc for why a caller-supplied area
would either have to be kept in sync by hand with whatever a
deployment’s own chart-ingest pipeline adds to the file over time, or
risk baking a region that quietly stops matching what the chart
actually covers.
§Errors
If the chart cannot be read, carries no coverage to detect a region from, its own file metadata cannot be read, or the cache file cannot be written.