IFClite TypeScript API
    Preparing search index...

    Interface TerrainGrid

    A north-up height grid, field-compatible with ElevationGrid of @ifc-lite/geodata-ch plus the required sampling convention:

    • 'node': values[row * width + col] is the height AT (origin.x + col * resolution, origin.y - row * resolution); origin is the north-west node (the geodata-ch convention).
    • 'cell-centre': it is the height at the CENTRE of the cell whose north-west corner is (origin.x + col * resolution, origin.y - row * resolution); origin is the north-west corner of the grid (the GeoTIFF pixel-is-area convention).

    NaN is no data; hasData: false means the grid carries no heights at all.

    interface TerrainGrid {
        crs: string;
        hasData?: boolean;
        height: number;
        origin: MapPoint;
        resolution: number;
        sampling: "node" | "cell-centre";
        values: ArrayLike<number>;
        verticalCrs: string;
        verticalReference?: string;
        width: number;
    }
    Index
    crs: string
    hasData?: boolean

    false when the grid carries no heights (for example a box outside coverage). Treated as all NaN.

    height: number
    origin: MapPoint
    resolution: number
    sampling: "node" | "cell-centre"
    values: ArrayLike<number>
    verticalCrs: string

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

    verticalReference?: string

    Human-readable vertical reference, for display only; never compared.

    width: number