{"issue":{"created_at":"2011-11-22T18:14:39Z","state":"open","updated_at":"2011-11-22T21:19:20Z","user":{"gravatar_id":"45549bdcc07188a69e2bee3a781b2712","id":88151,"url":"https://api.github.com/users/craigloftus","login":"craigloftus","avatar_url":"https://secure.gravatar.com/avatar/45549bdcc07188a69e2bee3a781b2712?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"In issue #22 I mention the Denbies Wine Estate near Dorking which has 2 separate landuse areas ([1],[2]) both marked landuse=vineyard, which currently appear as two separate entities on the map. The way to resolve this is using relations to associate the ways. I couldn't think of anything more appropriate, so I used a site relation [3].\r\n\r\n[1] http://www.openstreetmap.org/browse/way/31864235\r\n[2] http://www.openstreetmap.org/browse/way/31864240\r\n[3] http://www.openstreetmap.org/browse/relation/1858412","assignee":null,"id":2321039,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":23,"labels":[],"title":"Adding support for relations","html_url":"https://github.com/jones139/BrewMap/issues/23","closed_at":null,"url":"https://api.github.com/repos/jones139/BrewMap/issues/23","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T21:19:20Z","updated_at":"2011-11-22T21:19:20Z","user":{"gravatar_id":"9f1217123e52d2c165a4257d9aecf5f0","id":309603,"url":"https://api.github.com/users/jones139","login":"jones139","avatar_url":"https://secure.gravatar.com/avatar/9f1217123e52d2c165a4257d9aecf5f0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"This is a difficult one - my database is produced using osm2pgsql, which\ndoes not support site relations, which is why it is not showing up.\n Assuming we fix osm2pgsql to store the relation as a single geogaphic\nfeature, what would we want it to do - include the individual vineyards and\nthe geometry of the combination of the two, or not store the individual\nones?\nIf we store them all he server code would have to check if an area is part\nof a relation before deciding whether to add it to the output....\n\nGraham.\n\nOn 22 November 2011 18:14, craigloftus <\nreply@reply.github.com\n> wrote:\n\n> In issue #22 I mention the Denbies Wine Estate near Dorking which has 2\n> separate landuse areas ([1],[2]) both marked landuse=vineyard, which\n> currently appear as two separate entities on the map. The way to resolve\n> this is using relations to associate the ways. I couldn't think of anything\n> more appropriate, so I used a site relation [3].\n>\n> [1] http://www.openstreetmap.org/browse/way/31864235\n> [2] http://www.openstreetmap.org/browse/way/31864240\n> [3] http://www.openstreetmap.org/browse/relation/1858412\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/jones139/BrewMap/issues/23\n>\n\n\n\n-- \nGraham Jones\nHartlepool, UK.","id":2840863,"url":"https://api.github.com/repos/jones139/BrewMap/issues/comments/2840863"}}