FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
geometry.hpp File Reference
#include <fcb/error.hpp>
#include <fcb/span.hpp>
#include <cstdint>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>

Go to the source code of this file.

Namespaces

namespace  fcb
 

Typedefs

using fcb::UIntView = span< const std::uint32_t >
 

Enumerations

enum class  fcb::GeometryKind : std::uint8_t {
  fcb::MultiPoint = 0 , fcb::MultiLineString = 1 , fcb::MultiSurface = 2 , fcb::CompositeSurface = 3 ,
  fcb::Solid = 4 , fcb::MultiSolid = 5 , fcb::CompositeSolid = 6 , fcb::GeometryInstance = 7
}
 The FlatBuffers GeometryType enumerators, mirrored here so a caller can name a geometry type without pulling in the generated headers. More...
 

Functions

nlohmann::json fcb::decode_boundaries (GeometryKind type, UIntView solids, UIntView shells, UIntView surfaces, UIntView strings, UIntView indices)
 Rebuild CityJSON's nested boundaries from the five flattened arrays, at the depth type implies.
 
nlohmann::json fcb::decode_semantics_values (GeometryKind type, UIntView solids, UIntView shells, UIntView values)
 Rebuild the nested semantics values array from the flat run of semantic indices.
 
nlohmann::json fcb::decode_material_values (GeometryKind type, UIntView solids, UIntView shells, UIntView vertices)
 Rebuild the values array of one material theme from a MaterialMapping.
 
nlohmann::json fcb::decode_texture_values (GeometryKind type, UIntView solids, UIntView shells, UIntView surfaces, UIntView strings, UIntView vertices)
 Rebuild the values array of one texture theme from a TextureMapping.
 
std::string fcb::geometry_type_name (std::uint8_t type)
 CityJSON name for a GeometryType enumerator, e.g.