Nothing here imports node:*, so this entry point runs unchanged in a
browser. Reading a local file is the one thing it cannot do; that lives
behind the package's separate "./node" subpath.
Everything this module exports is public API. The traversal internals --
node decoding, level bounds, B+tree entries and payloads -- are
deliberately NOT exported; the per-block comments below say why for each
group. Every error this package raises is an FcbError carrying an
ErrorCode.
The
@cityjson/flatcitybufpackage root: a pure TypeScript reader for FlatCityBuf, a cloud-optimized binary encoding of CityJSON.Start at FcbReader. Open a file with one of its static factories, query it with FcbReader.select, and turn the results into CityJSON with toCityJSONMetadata and toCityJSONFeature:
Nothing here imports
node:*, so this entry point runs unchanged in a browser. Reading a local file is the one thing it cannot do; that lives behind the package's separate"./node"subpath.Everything this module exports is public API. The traversal internals -- node decoding, level bounds, B+tree entries and payloads -- are deliberately NOT exported; the per-block comments below say why for each group. Every error this package raises is an FcbError carrying an ErrorCode.