FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
cityjson.hpp
Go to the documentation of this file.
1#pragma once
2
3#ifdef FCB_WITH_JSON
4
5# include <fcb/feature.hpp>
6# include <fcb/header.hpp>
7
8# include <nlohmann/json.hpp>
9
10namespace fcb {
11
14nlohmann::json to_cityjson_metadata(const HeaderView& header);
15
21nlohmann::json to_cityjson_feature(const Feature& feature, const HeaderView& header);
22
29std::string city_object_type_name(std::uint8_t type);
30
36std::string semantic_surface_type_name(std::uint8_t type);
37
38} // namespace fcb
39
40#endif // FCB_WITH_JSON
nlohmann::json to_cityjson_feature(const Feature &feature, const HeaderView &header)
One feature as a CityJSONFeature object.
Definition cityjson.cpp:682
std::string semantic_surface_type_name(std::uint8_t type)
CityJSON name for a SemanticSurfaceType enumerator, e.g.
Definition cityjson.cpp:572
nlohmann::json to_cityjson_metadata(const HeaderView &header)
The CityJSON metadata envelope: type, version, transform, extent, CRS.
Definition cityjson.cpp:585
std::string city_object_type_name(std::uint8_t type)
CityJSON name for a CityObjectType enumerator, e.g.
Definition cityjson.cpp:559