[Tile-serving] [openstreetmap/osm2pgsql] way makes it to planet_osm_ways but not planet_osm_polygon (#584)

ImreSamu notifications at github.com
Wed Jun 1 14:40:11 UTC 2016


> I noticed the following way was missing from the planet_osm_polygon table after import:
> http://openstreetmap.org/way/5049301

it is in the database ..   but with the parent 'relation' id 
  * http://www.openstreetmap.org/relation/239658

```sql
dev=> select name, osm_id from planet_osm_polygon   where osm_id =-239658
;
                   name                   | osm_id  
------------------------------------------+---------
 Edinburgh Napier University (Merchiston) | -239658
(1 row)

```

for compatibility - the 'old-style multipolygon rule'  is used : 
* 'If relation is not tagged, the drawing style of outer ways is used.'
  *  http://wiki.openstreetmap.org/wiki/Relation:multipolygon#Tagging

and the  relation is not tagged : 
```xml
<relation id="239658" visible="true" version="1" changeset="2446245" timestamp="2009-09-11T13:43:31Z" user="Augustus Kling" uid="48582">
   <member type="way" ref="40622382" role="inner"/>
   <member type="way" ref="5049301" role="outer"/>        
   <tag k="type" v="multipolygon"/>
</relation>
```


I have tested with the mapzen metro extract 
```
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/edinburgh_scotland.osm.pbf
```

---
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/584#issuecomment-223013729
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160601/3b53cc28/attachment.html>


More information about the Tile-serving mailing list