@cityjson/flatcitybuf
    Preparing search index...

    Class Feature

    One decoded feature that OWNS the bytes it points into.

    The buffer handed to the constructor must be a private copy starting at index 0 of its own ArrayBuffer -- readFeature guarantees that. See readFeature for why both halves of that matter.

    Index
    byteOffset: number

    Byte offset of this feature RELATIVE to the start of the features section, matching the offsets stored in the R-tree leaves.

    id: string

    The feature's id -- the id member of the emitted CityJSONFeature. '' for a malformed feature that omits the required field.

    • Shorthand for cityObjects()[objectIndex].attributes(), decoded against the schema that governs THAT object -- its own columns when it declares them, the header's otherwise.

      Parameters

      • objectIndex: number

      Returns Record<string, AttrValue>

      FcbError with code InvalidArgument when objectIndex is out of range.

    • The parsed FlatBuffers table behind this feature -- for the fields this handle does not surface, chiefly the per-feature appearance.

      Returns CityFeature

    • All vertices flattened to x,y,z triples of quantized integers -- apply the header's scale/translate to get world coordinates.

      Built element by element through the generated Vertex accessors rather than as a typed-array view over the struct vector: an Int32Array view would decode in the HOST's byte order, which is only accidentally the little-endian the format specifies.

      Returns Int32Array