| 252 | } |
| 253 | |
| 254 | QuickInfo 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 |
nothing calls this directly
no test coverage detected