MCPcopy Create free account
hub / github.com/PDAL/PDAL / stacType

Function stacType

io/private/stac/Utils.cpp:106–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106std::string stacType(const NL::json& stac)
107{
108 try
109 {
110 return stac.at("type").get<std::string>();
111 }
112 catch (NL::detail::out_of_range& e)
113 {
114 std::stringstream msg;
115 msg << "Missing required key 'type'. " << e.what();
116 throw pdal_error(msg.str());
117 }
118 catch (NL::detail::type_error& e)
119 {
120 std::stringstream msg;
121 msg << "Invalid key value 'type'. " << e.what();
122 throw pdal_error(msg.str());
123 }
124}
125
126std::string icSelfPath(const NL::json& json)
127{

Callers 1

stacValueFunction · 0.85

Calls 3

atMethod · 0.80
strMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected