[Tile-serving] [openstreetmap/osm2pgsql] way tags not making it into multipolygon because relation has tags (#588)

Eoghan Murray notifications at github.com
Mon Jun 6 09:53:50 UTC 2016


(This is quite similar to to #584 which I raised which was actually not an issue!)

This relation:
http://www.openstreetmap.org/relation/4007477
unifies the two bits of the College on either side of the road:
http://www.openstreetmap.org/way/145078273#map=18/51.75110/-1.25071
http://www.openstreetmap.org/way/113970233#map=18/51.75110/-1.25071

The relation itself has 2 extra tags (in addition to being tagged as a multipolygon):
```
		<tag k="amenity" v="university"/>
		<tag k="tourism" v="attraction"/>
```
And I think this means that the tags from the ways aren't getting into planet_osm_polygon
```
# select osm_id, tags from planet_osm_polygon where abs(osm_id) in (4007477, 145078273, 113970233);
  osm_id  |                                  tags                                   
----------+-------------------------------------------------------------------------
 -4007477 | "amenity"=>"university", "tourism"=>"attraction", "way_area"=>"70580.1"
 -4007477 | "amenity"=>"university", "tourism"=>"attraction", "way_area"=>"7891.48"
(2 rows)

```

Here's some of the relevant XML from great-britain-latest.osm:
https://gist.github.com/eoghanmurray/c70e5eb7082ee19b85499d77f132100c

So crucially, in planet_osm_polygon we've lost the fact that the named 'Merton College' exists.

So I guess the relation tags are being used wholesale, and tags from the ways are being ignored.
I guess the tags should be merged in.
(Also it's unexpected for me in the first place that the 2 ways don't end up in planet_osm_polygon under their own ids and tags.)




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


More information about the Tile-serving mailing list