[Tile-serving] [openstreetmap/osm2pgsql] gazetteer: handle updates of unnamed places (#934)

Sarah Hoffmann notifications at github.com
Sun Jun 9 15:36:42 UTC 2019


When downgrading an unnamed object from SF_MAIN to SF_MAIN_NAMED,
the object needs to be deleted. Finding that condition in has_data()
is a bit expecsive, so instead catch the condition when copying
the data out. If there are multiple main tags, then
delete_unused_classes() needs to remove the instance as well.
Adapt has_place() for that.

Fixes #933.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/934

-- Commit Summary --

  * gazetteer: handle updates of unnamed places

-- File Changes --

    M gazetteer-style.cpp (27)
    M gazetteer-style.hpp (2)
    M output-gazetteer.cpp (9)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/934.patch
https://github.com/openstreetmap/osm2pgsql/pull/934.diff

-- 
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/934
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190609/f6042f2e/attachment.html>


More information about the Tile-serving mailing list