I forgot to add that I am using Osmium. The issue is that I don’t have access to exactly that information. The reader does not provide it and a buffers size is also not representative since the internal data representation is not the same as in the files…
Greetings Rainer > On 01.03.2015, at 19:51, Paul Mahon <[email protected]> wrote: > > Couldn't you just count the number of bytes read and compare it to the number > of bytes in the file? > > On 15-03-01 08:24 AM, Rainer Schlönvoigt wrote: >> While iterating through an OSM file, is there a way to find out how much of >> the information has already been iterated through? >> >> When going through a planet file, it would be very helpful in order to show >> something to a user. >> >> Greetings >> Rainer >> _______________________________________________ >> dev mailing list >> [email protected] >> https://lists.openstreetmap.org/listinfo/dev > > > _______________________________________________ > dev mailing list > [email protected] > https://lists.openstreetmap.org/listinfo/dev _______________________________________________ dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/dev

