MCPcopy Create free account
hub / github.com/LAStools/LAStools / print

Method print

LASzip/src/lasindex.cpp:173–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void LASindex::print()
174{
175 U32 total_cells = 0;
176 U32 total_full = 0;
177 U32 total_total = 0;
178 U32 total_intervals = 0;
179 U32 total_check;
180 U32 intervals;
181 interval->get_cells();
182 while (interval->has_cells())
183 {
184 total_check = 0;
185 intervals = 0;
186 while (interval->has_intervals())
187 {
188 total_check += interval->end-interval->start+1;
189 intervals++;
190 }
191 if (total_check != interval->total)
192 {
193 LASMessage(LAS_VERBOSE, "total_check %u != interval->total %u", total_check, interval->total);
194 }
195 LASMessage(LAS_VERY_VERBOSE, "cell %d intervals %u full %u total %u (%.2f)", interval->index, intervals, interval->full, interval->total, 100.0f*interval->full/interval->total);
196 total_cells++;
197 total_full += interval->full;
198 total_total += interval->total;
199 total_intervals += intervals;
200 }
201 LASMessage(LAS_VERY_VERBOSE, "total cells/intervals %u/%u full %u (%.2f)", total_cells, total_intervals, total_full, 100.0f*total_full/total_total);
202}
203
204LASquadtree* LASindex::get_spatial() const
205{

Callers 1

mainFunction · 0.45

Calls 4

LASMessageFunction · 0.85
get_cellsMethod · 0.80
has_cellsMethod · 0.80
has_intervalsMethod · 0.45

Tested by

no test coverage detected