Yes Bart I'm using GeoServer.<br><br>It seems 'Cross-layer filtering' is exactly what I need.<br>I will investigate it further.<br><div class="gmail_extra"><br clear="all">Bedankt,<br><br>Paul<br>
<br><br><div class="gmail_quote">2012/11/22 Bart van den Eijnden <span dir="ltr"><<a href="mailto:bartvde@opengeo.org" target="_blank">bartvde@opengeo.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">What WMS are you using?<div><br></div><div>If you're using GeoServer, check out:</div><div><br></div><div><a href="http://docs.geoserver.org/latest/en/user/extensions/querylayer/index.html" target="_blank">http://docs.geoserver.org/latest/en/user/extensions/querylayer/index.html</a></div>

<div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span style="border-collapse:separate;border-spacing:0px"><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org</a><br>Expert service straight from the developers.</div>

<div><br></div></span><br>

</div>
<br><div><div><div class="h5"><div>On Nov 22, 2012, at 11:46 AM, Paul Meems <<a href="mailto:bontepaarden@gmail.com" target="_blank">bontepaarden@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div>

<div class="h5">
I have two layers:<br>* Buildings<br>* Roof tops<br><br>I now have implemented OpenLayers.Control.WMSGetFeatureInfo on the roof tops layer.<br>This works great and a popup is shown with the data.<br><br>I want to change this so that WMSGetFeatureInfo works on the Buildings layer.<br>



I know how to do that, but instead of showing the data of the building I want to show the data of the roof tops that belong to that building.<br>I can get the roof tops using the building ID but how do I make WMSGetFeatureInfo fill my popup with the roof top data?<br>



<br>I think I need to call a php-file that returns a json string with the data.<br>I'm doing something similar when looking for addresses.<br>I also need to change the popup so that every roof top gets its own tab.<br>



<br>Any advice would be much appreciated.<br><br>Thanks,<br><br>Paul<br></div></div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>

</blockquote></div><br></div></div></blockquote></div><br></div>