[Tile-serving] [openstreetmap/osm2pgsql] Check for negative object ids in input files and output a warning (#1251)
Paul Norman
notifications at github.com
Wed Jul 15 20:11:02 UTC 2020
@pnorman requested changes on this pull request.
> @@ -9,8 +9,23 @@ input_handler_t::input_handler_t(osmium::Box const &bbox, bool append,
: m_data(osmdata), m_bbox(bbox), m_append(append)
{}
+void input_handler_t::negative_id_warning()
+{
+ fmt::print(stderr,
+ "\nWARNING: The input file contains at least one object with "
+ "a negative id.\n Negative ids are not properly "
+ "supported in osm2pgsql (and never\n were). They will "
+ "not work in future versions at all. You can use\n"
+ " the osmium tool to 'renumber' your file.\n\n");
Can we reformat this text? If necessary, the max line length can be overridden for this part of the file.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1251#pullrequestreview-449293663
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200715/e527aec3/attachment.htm>
More information about the Tile-serving
mailing list