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

Method pointFormatSupported

io/LasHeader.cpp:237–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237Utils::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
254uint16_t LasHeader::pointLen() const
255{

Callers

nothing calls this directly

Calls 1

versionStringFunction · 0.85

Tested by

no test coverage detected