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

Function lasType

io/private/las/Utils.cpp:209–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209uint8_t lasType(Dimension::Type type, int fieldCnt)
210{
211 if (fieldCnt < 1 || fieldCnt > 3)
212 return 0;
213
214 uint8_t lastype = 0;
215 for (size_t i = 0; i < sizeof(lastypes) / sizeof(lastypes[0]); ++i)
216 if (type == lastypes[i])
217 {
218 lastype = i;
219 break;
220 }
221
222 // 0 is the "undocumented" type, which we don't really support.
223 if (lastype == 0)
224 return 0;
225 return 10 * (fieldCnt - 1) + lastype;
226}
227
228
229void ExtraBytesIf::setType(uint8_t lastype)

Callers 2

appendToMethod · 0.85
addEbVlrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected