| 275 | } |
| 276 | |
| 277 | int parseCompressionString(const std::string &s) |
| 278 | { |
| 279 | std::string comp = util::toLower(s); |
| 280 | |
| 281 | if(comp == "both") { |
| 282 | return PointCompressionType::BOTH; |
| 283 | } |
| 284 | |
| 285 | if(comp == "compressed") { |
| 286 | return PointCompressionType::COMPRESSED; |
| 287 | } |
| 288 | |
| 289 | if(comp == "uncompressed") { |
| 290 | return PointCompressionType::UNCOMPRESSED; |
| 291 | } |
| 292 | |
| 293 | throw std::string("Invalid compression format: '" + s + "'"); |
| 294 | } |
| 295 | |
| 296 | static std::string getCompressionString(int mode) |
| 297 | { |
no test coverage detected