Closed sphoto closed 4 years ago
For several reasons the progress bar can only show a very rough estimate of the real progress. This is due to multithreaded reading and buffering and, in this case, because the relations are only such a small part of all the data in the file, so they are all in the buffer before you know it. It works reasonably well in many cases, but in some cases it is really not that usable. I don't know how to make this better, sorry.
If you can't do it better, leave it as it is. This is not that important and more a "cosmetic" thing than a real issue. Anyway, thank you for the explanation.
For certain projects I use
read_relations()
in conjuction with MultipolygonManager:The progress bar is already at 100% (reader.offset() = EOF) after the first or second reader.read(), while the loop
while (auto buffer = reader.read()) { ... }
is not yet completed. My expection would be, that the progress bar is only at 100% when the loop is finished, otherwise aprogress_bar.update(reader.offset())
within the loop makes no sense?!I put an additional cout into
read_relations()
to get the currentreader.offset()
:This is what I've got (44006348 = EOF):