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

Configuration for FcbWriter. More...

#include <fcb/writer/fcb_writer.hpp>

Public Attributes

bool write_index = true
 false forces index_node_size to 0 in the written header (no R-tree at all), regardless of index_node_size below – mirrors HeaderWriter::new_with_options (header_writer.rs:87-94).
 
std::uint16_t index_node_size = kDefaultNodeSize
 
std::vector< std::pair< std::string, std::optional< std::uint16_t > > > attribute_indices
 (attribute name, branching factor); std::nullopt branching factor means build_static_btree's own default.
 
std::optional< std::array< double, 6 > > geographical_extent
 

Detailed Description

Configuration for FcbWriter.

Mirrors HeaderWriterOptions (writer/header_writer.rs) minus the CLI-only knobs this library has no use for (there is no -g/bbox-filter/--no-feature-count equivalent: feature_count is always however many features were added).

Definition at line 26 of file fcb_writer.hpp.

Member Data Documentation

◆ attribute_indices

std::vector<std::pair<std::string, std::optional<std::uint16_t> > > fcb::FcbWriterOptions::attribute_indices

(attribute name, branching factor); std::nullopt branching factor means build_static_btree's own default.

Empty means no attribute index is built for any column.

Definition at line 35 of file fcb_writer.hpp.

Referenced by fcb::FcbWriter::FcbWriter(), and fcb::FcbWriter::write().

◆ geographical_extent

std::optional<std::array<double, 6> > fcb::FcbWriterOptions::geographical_extent

Definition at line 36 of file fcb_writer.hpp.

Referenced by fcb::FcbWriter::write().

◆ index_node_size

std::uint16_t fcb::FcbWriterOptions::index_node_size = kDefaultNodeSize

Definition at line 31 of file fcb_writer.hpp.

Referenced by fcb::FcbWriter::write().

◆ write_index

bool fcb::FcbWriterOptions::write_index = true

false forces index_node_size to 0 in the written header (no R-tree at all), regardless of index_node_size below – mirrors HeaderWriter::new_with_options (header_writer.rs:87-94).

Definition at line 30 of file fcb_writer.hpp.

Referenced by fcb::FcbWriter::write().


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