IFClite TypeScript API
    Preparing search index...

    Interface BuildingsOptions

    interface BuildingsOptions {
        cache?: TilesCache;
        dracoModuleOptions?: Record<string, unknown>;
        fetch?: FetchLike;
        maxBytes?: number;
        maxFeatures?: number;
        maxRequests?: number;
        maxTriangles?: number;
        reader?: (
            options: Omit<ReadTilesetRegionOptions, "url"> & { release?: string },
        ) => Promise<SwisstopoBuildingsResult>;
        release?: string;
        tileCullMarginMetres?: number;
    }
    Index
    cache?: TilesCache
    dracoModuleOptions?: Record<string, unknown>

    Emscripten options for the Draco decoder, e.g. { locateFile: () => wasmUrl } in a browser.

    fetch?: FetchLike

    Passed to the reader: the CLI injects its fetch and on-disk cache, the viewer its own.

    maxBytes?: number
    maxFeatures?: number

    At most this many buildings are kept, nearest the centre first (default 5000).

    maxRequests?: number

    Request and byte budgets of the read; default: the preset's (64 requests, 32 MiB).

    maxTriangles?: number

    At most this many triangles in all, nearest the centre first (default 2 000 000).

    reader?: (
        options: Omit<ReadTilesetRegionOptions, "url"> & { release?: string },
    ) => Promise<SwisstopoBuildingsResult>

    Default: the swisstopo swissBUILDINGS3D preset of @ifc-lite/tiles3d.

    Type Declaration

      • (
            options: Omit<ReadTilesetRegionOptions, "url"> & { release?: string },
        ): Promise<SwisstopoBuildingsResult>
      • Read swisstopo buildings in a WGS84 region with conservative default budgets. Each tile whose batch table lacks EGID or the height columns (GELAENDEPUNKT, DACH_MIN, DACH_MAX) adds a warning issue with code missing-attributes: measured Geneva and Lugano tiles have none of them.

        Parameters

        Returns Promise<SwisstopoBuildingsResult>

    release?: string

    Pin a dated swisstopo release (YYYYMMDD); default: the current one.

    tileCullMarginMetres?: number

    Tile-cull margin in metres; default: the preset's measured 100 m.