| 235 | } |
| 236 | |
| 237 | Utils::StatusWithReason LasHeader::pointFormatSupported() const |
| 238 | { |
| 239 | if (hasWave()) |
| 240 | return { -1, "PDAL does not support point formats with waveform data (4, 5, 9 and 10)" }; |
| 241 | if (versionAtLeast(1, 4)) |
| 242 | { |
| 243 | if (pointFormat() > 10) |
| 244 | return { -1, "LAS version " + versionString() + " only supports point formats 0-10." }; |
| 245 | } |
| 246 | else |
| 247 | { |
| 248 | if (pointFormat() > 5) |
| 249 | return { -1, "LAS version '" + versionString() + " only supports point formats 0-5." }; |
| 250 | } |
| 251 | return true; |
| 252 | } |
| 253 | |
| 254 | uint16_t LasHeader::pointLen() const |
| 255 | { |
nothing calls this directly
no test coverage detected