1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # CityJSON-STAC
//!
//! A library for generating STAC (SpatioTemporal Asset Catalog) metadata
//! from CityJSON datasets.
//!
//! ## Supported Formats
//!
//! - CityJSON (`.json`)
//! - CityJSON Sequences (`.jsonl`)
//! - FlatCityBuf (`.fcb`) - coming soon
//!
//! ## Example
//!
//! ```no_run
//! use city3d_stac::reader::get_reader;
//! use city3d_stac::stac::StacItemBuilder;
//! use std::path::Path;
//!
//! # fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let reader = get_reader(Path::new("building.json"))?;
//! let item = StacItemBuilder::new("my-building")
//! .bbox(reader.bbox()?)
//! .cityjson_metadata(&*reader)?
//! .build()?;
//! # Ok(())
//! # }
//! ```
pub use ;