IFClite TypeScript API
    Preparing search index...

    Interface HazardProvider

    A source of classified hazard rasters in one projected CRS.

    interface HazardProvider {
        classes: readonly HazardClassDefinition[];
        covers?: CoverageTest;
        crs: string;
        extent: MapBBox;
        id: string;
        modelCellSize: number;
        confirmRendering?(signal?: AbortSignal): Promise<RenderingConfirmation>;
        fetchRaster(request: HazardRasterRequest): Promise<ClassifiedHazardRaster>;
    }
    Index
    classes: readonly HazardClassDefinition[]
    covers?: CoverageTest

    The coverage perimeter, for information; the check reads the one each raster carries (ClassifiedHazardRaster.covers).

    crs: string
    extent: MapBBox

    Box around the dataset, in its CRS; requests outside it are refused.

    id: string
    modelCellSize: number

    Resolution of the underlying model raster, metres.

    • Request a small reference area where the map is known to show runoff and say whether it does. Used when a whole raster comes back transparent, so a layer outage or reprocessing is not read as "no runoff mapped".

      Parameters

      • Optionalsignal: AbortSignal

      Returns Promise<RenderingConfirmation>