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

Function toString

io/CopcReader.cpp:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185template<>
186std::string toString(const SrsOrderSpec& srsOrder)
187{
188 using namespace las;
189
190 // Note: geotiff is invalid for COPC and should never appear in a valid SrsOrderSpec.
191 static const std::array<std::string, 4> srsTypeNames { "wkt1", "geotiff", "projjson", "wkt2" };
192
193 std::string out;
194 for (SrsType type : srsOrder.types)
195 out += srsTypeNames[Utils::toNative(type)] + ",";
196 if (out.size())
197 out.erase(out.size() - 1);
198 return out;
199}
200
201} // namespace Utils
202

Callers

nothing calls this directly

Calls 3

toNativeFunction · 0.50
sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected