…isk database format for a while now.
The generator name appears in the output files (both XML and PBF) which makes it annoying to test, as a bumped version invalidates all the static test comparison files. To fix it, this adds an option to override the `PACKAGE_STRING` so that the tests can use a stable value. It is not recommended for other use, as having the current version in the dump file is useful for tracing back any errors or bug reports.
Previously, initial entries were initialized to zero - a value for element IDs which doesn't exist in the database. However, when a database is loaded using Osmosis, it does create some entries with ID=0. Therefore, it's better to just initialise to a negative number and ensure that negative elements are never processed.
This adds support for an *additional* dump of changesets which includes discussions. This will be the new format and deprecates the previous format, but we'll allow a few months after the announcement for the previous format to be sunsetted. The format is the same as getting changesets with discussions from the XML API.
…finished thread as more than one thread can finish before the main thread wakes up.
Conflicts: src/Makefile.am src/planet-dump.cpp
…hecking, ensure last IDs always initialised.
Changeset-only dumps are pretty useful for doing some analysis which doesn't require downloading the whole planet, and the old planet dump script supported it, so it seems like a good idea to try and support it here too. This adds a "filter" applied to `xml_writer` which drops all elements except for changesets, which is pretty much what we want. Hopefully the overhead of the extra synchronisation with the dump thread won't be too high.