<div dir="ltr">On Tue, May 14, 2013 at 6:47 PM, Shadin <span dir="ltr"><<a href="mailto:shadin__a@hotmail.com" target="_blank">shadin__a@hotmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">and then how can i write one sql query for GeoServer? let's say I have one<br>

layer that contains all city stores. and other layer contains all city<br>
restaurants. How can I combine them in one layer? I can't use join here they<br>
<div class="im">are not related to each other<br></div></blockquote><div><br></div><div style>The WFS protocol allows multiple feature types to be queried in a single GetFeature request, e.g.:</div><div style><br></div><div style>
<a href="http://localhost:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sf:archsites,sf:roads">http://localhost:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sf:archsites,sf:roads</a><br>
</div><div style><br></div><div style>This will make for a single WFS request (which I don't know if it's possible to configure in OL)</div><div style>but mind, GeoServer will still do two separate SQL queries to build the GML in output</div>
<div style><br></div><div style>Cheers</div><div style>Andrea</div><div><br></div></div>-- <br><div dir="ltr"><div>==</div><div>GeoServer training in Milan, 6th & 7th June 2013!  Visit <a href="http://geoserver.geo-solutions.it/" style="color:rgb(17,85,204)" target="_blank">http://geoserver.geo-solutions.it</a> for more information.<br>
==<br></div><div><br></div><div>Ing. Andrea Aime </div><div>@geowolf</div><div>Technical Lead</div><div><br></div><div>GeoSolutions S.A.S.</div><div>Via Poggio alle Viti 1187</div><div>55054  Massarosa (LU)</div><div>Italy</div>
<div>phone: +39 0584 962313</div><div>fax: +39 0584 1660272</div><div>mob: +39  339 8844549</div><div><br></div><div><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></div><div><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></div>
<div><br></div><div>-------------------------------------------------------</div></div>
</div></div>