| 184 | |
| 185 | template<> |
| 186 | std::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 |