[OpenLayers-Users] Multiple FeatureType in WFS Protocol
Andrea Aime
andrea.aime at geo-solutions.it
Tue May 14 10:20:22 PDT 2013
On Tue, May 14, 2013 at 6:47 PM, Shadin <shadin__a at hotmail.com> wrote:
> and then how can i write one sql query for GeoServer? let's say I have one
> layer that contains all city stores. and other layer contains all city
> restaurants. How can I combine them in one layer? I can't use join here
> they
> are not related to each other
>
The WFS protocol allows multiple feature types to be queried in a single
GetFeature request, e.g.:
http://localhost:8080/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=sf:archsites,sf:roads
This will make for a single WFS request (which I don't know if it's
possible to configure in OL)
but mind, GeoServer will still do two separate SQL queries to build the GML
in output
Cheers
Andrea
--
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130514/cf3bfd4e/attachment.html>
More information about the Users
mailing list