FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
fcb::GMSemantics Struct Reference

Flattened semantics: surfaces is the CityJSON semantics.surfaces array, passed through verbatim (FlatBuffers SemanticObject encoding, including its "other" attributes, is M3's job). More...

#include <fcb/writer/geom_encoder.hpp>

Public Attributes

nlohmann::ordered_json surfaces = nlohmann::ordered_json::array()
 
std::optional< std::vector< std::uint32_t > > values
 

Detailed Description

Flattened semantics: surfaces is the CityJSON semantics.surfaces array, passed through verbatim (FlatBuffers SemanticObject encoding, including its "other" attributes, is M3's job).

values is one flat entry per surface, UINT32_MAX for null, or std::nullopt for a null semantics.values member (or one absent altogether – the schema requires the member but permits null, and this handles a missing member the same way defensively rather than throwing). Mirrors GMSemantics (writer/geom_encoder.rs).

Definition at line 48 of file geom_encoder.hpp.

Member Data Documentation

◆ surfaces

nlohmann::ordered_json fcb::GMSemantics::surfaces = nlohmann::ordered_json::array()

Definition at line 49 of file geom_encoder.hpp.

Referenced by fcb::encode_semantics().

◆ values

std::optional<std::vector<std::uint32_t> > fcb::GMSemantics::values

Definition at line 50 of file geom_encoder.hpp.

Referenced by fcb::encode_semantics().


The documentation for this struct was generated from the following file: