[Tile-serving] [osm2pgsql-dev/osm2pgsql] modify relation's member attribute during imort (Discussion #2312)

denis-olyanyuk notifications at github.com
Thu Mar 27 17:55:11 UTC 2025


I am using Nominatim and I was using one old osm.pbf file. I decided to update it and found out that am no longer able to find an object which was in Nominatim before. 

It is this node https://nominatim.openstreetmap.org/ui/details.html?osmtype=N&osmid=158837444&keywords=1
Long story short if I import relation 8th version of parent relation  https://www.openstreetmap.org/api/0.6/relation/2017758/8 I cannot find node, but if I import 7th version  https://www.openstreetmap.org/api/0.6/relation/2017758/7 - everything is fine. 
The only difference is role of the node, in 7th version it's  "admin_centre" and in 8th - "label". 

So my question is: can modyfi this role somewhere? I tried in flex-base.lua  in function process_relation modify this relation but osm2pgsql ignores that modification.

Related question was asked in Nominatim project, paste it here, might be usefull 
https://github.com/osm-search/Nominatim/discussions/3662

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2312
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2312 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250327/f795c475/attachment.htm>


More information about the Tile-serving mailing list