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

Method inspect

io/LasReader.cpp:254–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254QuickInfo LasReader::inspect()
255{
256 QuickInfo qi;
257 std::unique_ptr<PointLayout> layout(new PointLayout());
258
259 RowPointTable table;
260 initialize(table);
261 addDimensions(layout.get());
262
263 Dimension::IdList dims = layout->dims();
264 for (auto di = dims.begin(); di != dims.end(); ++di)
265 qi.m_dimNames.push_back(layout->dimName(*di));
266 if (!Utils::numericCast(d->header.pointCount(), qi.m_pointCount))
267 qi.m_pointCount = (std::numeric_limits<point_count_t>::max)();
268 qi.m_bounds = d->header.bounds;
269 qi.m_srs = getSpatialReference();
270 qi.m_valid = true;
271 qi.m_metadata = m_metadata;
272
273 done(table);
274
275 return qi;
276}
277
278
279// IMPORTANT NOTE: Unless you're going to totally overhaul things, you *must* use this

Callers

nothing calls this directly

Calls 9

initializeFunction · 0.85
addDimensionsFunction · 0.85
numericCastFunction · 0.85
dimNameMethod · 0.80
doneFunction · 0.50
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
pointCountMethod · 0.45

Tested by

no test coverage detected