I think that osm2pgsql stores relations in the relevant line or polygon table with an id of -1 * the relation ID - try searching for relations with negative IDs and see if that is what you are looking for.<div><br>Regards</div>
<div><br></div><div><br>Graham.<br><br><div class="gmail_quote">On 22 January 2012 17:16, Morten Olsen Lysgaard <span dir="ltr"><<a href="mailto:morten@lysgaard.no">morten@lysgaard.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi.<br>
I'm currently running a project on open aviation data.<br>
In it I'm planning to use relations for some of the information.<br>
There's just this catch: When i show the map i let users click features to show a popup-box with all the tags that this object has.<br>
Up till now I've achieved this by serving my map as a WFS layer.<br>
The WFS layer reads a database from a osm2pgsql sync. In this sync, no information about relations seems to be kept. That means that when I now want to move some of my data over to relations, there's no way to let users see the tags that are in the relation.<br>

<br>
Is there any other way to achieve this, in short, this is what I want.<br>
<br>
When a user clicks on something on my map, information must be shown of what tags that object and any relation it's a part of has.<br>
<br>
I'm willing to do anything. I know there exists something named WMS GetFeatureInfo, but I'm not sure how it ties together with openstreetmap.<br>
<br>
Thanks in advance, Morten.<br>
<br>
______________________________<u></u>_________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.<u></u>org/listinfo/dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>