Skip to main content

read_model

Function read_model 

Source
pub fn read_model(
    bytes: &[u8],
    options: &ReadOptions,
) -> Result<CityModel, Error>
Expand description

Parse a CityJSON document into an owned model.

ยงErrors

Returns an error if the payload is not valid UTF-8, not valid JSON, or does not contain a CityJSON root document.