IFClite TypeScript API
    Preparing search index...

    Interface TerrainSource

    Terrain heights, injected by the caller (for example a swissALTI3D client). Provide at least one of heightAt and grid.

    interface TerrainSource {
        crs: string;
        verticalAccuracy?: number;
        verticalCrs: string;
        verticalReference?: string;
        grid?(
            bbox: MapBBox,
            options: { resolution: number; signal?: AbortSignal },
        ): Promise<TerrainGrid>;
        heightAt?(
            point: MapPoint,
            signal?: AbortSignal,
        ): number | Promise<number | null> | null;
    }
    Index
    crs: string
    verticalAccuracy?: number

    1-sigma vertical accuracy in metres as the source states it. Without it the check cannot size its clearance margin and never reports above-mapped-class-range.

    verticalCrs: string

    Vertical CRS of every height as an EPSG identifier, for example EPSG:5728 (LN02). Compared by code.

    verticalReference?: string

    Human-readable vertical reference, for display only.

    • Parameters

      • bbox: MapBBox
      • options: { resolution: number; signal?: AbortSignal }

      Returns Promise<TerrainGrid>

    • Parameters

      • point: MapPoint
      • Optionalsignal: AbortSignal

      Returns number | Promise<number | null> | null