|
FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
|
#include <fcb/error.hpp>#include <fcb/writer/header_serializer.hpp>#include <charconv>#include <string_view>Go to the source code of this file.
Namespaces | |
| namespace | fcb |
Functions | |
| ::Transform | fcb::to_transform (const nlohmann::ordered_json &transform) |
Builds the Transform struct (scale + translate) from CityJSON's top-level transform member. | |
| std::optional< ParsedReferenceSystem > | fcb::parse_reference_system (const std::string &url) |
Parses a referenceSystem URL (https://www.opengis.net/def/crs/{authority}/{version}/{code}, per cjseq2's ReferenceSystem::from_url) into its three OGC elements. | |
| ::flatbuffers::Offset<::ReferenceSystem > | fcb::to_reference_system (::flatbuffers::FlatBufferBuilder &fbb, const ParsedReferenceSystem &ref_sys) |
Builds the ReferenceSystem table from a parsed metadata.referenceSystem URL. | |
| ::flatbuffers::Offset<::Extension > | fcb::to_extension (::flatbuffers::FlatBufferBuilder &fbb, const std::string &name, const std::string &url, const std::string &version) |
Builds one extensions entry: only name/url/version are written (the schema document itself is never fetched or embedded). | |
| ::flatbuffers::Offset<::flatbuffers::Vector< const ::DoubleVertex * > > | fcb::to_templates_vertices (::flatbuffers::FlatBufferBuilder &fbb, const nlohmann::ordered_json &vertices_templates) |
Builds Header.templates_vertices from CityJSON's geometry-templates.vertices-templates (f64 precision, unlike a feature's own int32 vertices). | |
| PocOffsets | fcb::to_point_of_contact (::flatbuffers::FlatBufferBuilder &fbb, const nlohmann::ordered_json &poc) |
| ::flatbuffers::Offset<::Header > | fcb::to_fcb_header (::flatbuffers::FlatBufferBuilder &fbb, const nlohmann::ordered_json &cj, const HeaderWriterOptions &options, const AttributeSchema &attr_schema, const AttributeSchema *semantic_attr_schema, const std::vector< AttributeIndexInfo > *attribute_indices_info) |
Builds the whole Header table from the CityJSON metadata line (the first line of a CityJSONSeq: type/version/transform/metadata/ geometry-templates/appearance/extensions), the writer options, and the attribute schema(s). | |