fcb_core 0.7.6

FlatCityBuf is a library for reading and writing CityJSON with FlatBuffers. Contains code derived from FlatGeobuf (BSD-2-Clause) for spatial indexing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Current version of FlatCityBuf
pub const VERSION: u8 = 1;

// Magic bytes for FlatCityBuf
pub const MAGIC_BYTES: [u8; 8] = [b'f', b'c', b'b', VERSION, b'f', b'c', b'b', 0];

// Maximum buffer size for header
pub const HEADER_MAX_BUFFER_SIZE: usize = 1024 * 1024 * 512; // 512MB

// Size of magic bytes
pub const MAGIC_BYTES_SIZE: usize = 8;

// Size of header size
pub const HEADER_SIZE_SIZE: usize = 4;