Multiple query response Parameter discussions .1 lockId parameter

Copyright © 2010 Open Geospatial Consortium 69 xmlns:wfs=http:www.opengis.netwfs2.0 xmlns:gml=http:www.opengis.netgml3.2 xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.opengis.netwfs2.0 http:schemas.opengis.netwfs2.0.0wfs.xsd http:www.opengis.netgml3.2 http:schemas.opengis.netgml3.2.1gml.xsd wfs:member wfs:FeatureCollection timeStamp=2008-08-01T22:47:02 numberMatched=15 numberReturned=15 ... wfs:FeatureCollection wfs:member wfs:member wfs:FeatureCollection timeStamp=2008-08-01T22:47:04 numberMatched=257 numberReturned=257 ... wfs:FeatureCollection wfs:member wfs:member wfs:FeatureCollection timeStamp=2008-08-01T22:47:06 numberMatched=77 numberReturned=28 ... wfs:FeatureCollection wfs:member wfs:FeatureCollection EXAMPLE 2 The following fragment illustrates a response to GetFeature operations that contains multiple query expressions where the component collections are referenced. ?xml version=1.0 encoding=UTF-8? wfs:FeatureCollection timeStamp=2008-08-01T22:47:02 numberMatched=349 numberReturned=300 xmlns:wfs=http:www.opengis.netwfs2.0 xmlns:gml=http:www.opengis.netgml3.2 xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.opengis.netwfs2.0 http:schemas.opengis.netwfs2.0.0wfs.xsd http:www.opengis.netgml3.2 http:schemas.opengis.netgml3.2.1gml.xsd wfs:member xlink:href=... ... wfs:member xlink:href=... wfs:FeatureCollection Feature members that satisfy more than one query expression in a GetFeature operation shall appear in one collection and be referenced by all others. The order of the collections in the response document shall be the same as the order of the query expressions in the GetFeature request; although the queries may be processed in any order the server desires.

11.3.3.6 Join query response

If a GetFeature operations contain a query expression that is performing a join, a server shall use the wfs:Tuple element see 10.3.2 to report all tuples of features that satisfy the join predicate. EXAMPLE 1 The following XML fragment shows the response generated by a query expression joining three feature types ns1:FeatureTypeOne, ns1:FeatureTypeTwo and ns2:FeatureTypeThree: ?xml version=1.0 encoding=UTF-8? wfs:FeatureCollection timeStamp=2008-08-01T22:47:02 numberMatched=200 numberReturned=200 xmlns:ns1=http:www.someserver.comns1 xmlns:ns2=http:www.someserver.comns2 xmlns:wfs=http:www.opengis.netwfs2.0 70 Copyright © 2010 Open Geospatial Consortium xmlns:gml=http:www.opengis.netgml3.2 xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.someserver.comns1 .ns1.xsd http:www.xomeserver.comns2 .ns2.xsd http:www.opengis.netwfs2.0 http:schemas.opengis.netwfs2.0.0wfs.xsd http:www.opengis.netgml3.2 http:schemas.opengis.netgml3.2.1gml.xsd wfs:boundedBy gml:Envelope srsName=urn:ogc:def:crs:EPSG::4326 gml:lowerCorner-32.7638053894043 104.1429748535156gml:lowerCorner gml:upperCorner0 133.3553924560547gml:upperCorner gml:Envelope wfs:boundedBy wfs:member wfs:Tuple wfs:member ns1:FeatureTypeOne...ns1:FeatureTypeOne wfs:member wfs:member ns1:FeatureTypeTwo...ns1:FeatureTypeTwo wfs:member wfs:member ns2:FeatureTypeThree...ns2:FeatureTypeThree wfs:member wfs:Tuple wfs:member wfs:member wfs:Tuple wfs:member ns1:FeatureTypeOne...ns1:FeatureTypeOne wfs:member wfs:member ns1:FeatureTypeTwo...ns1:FeatureTypeTwo wfs:member wfs:member ns1:FeatureTypeThree...ns1:FeatureTypeThree wfs:member wfs:Tuple wfs:member wfs:member wfs:Tuple wfs:member xlink:href=... wfs:member xlink:href=... wfs:member ns2:FeatureTypeThree...ns2:FeatureTypeThree wfs:member wfs:Tuple wfs:member ... wfs:FeatureCollection GetFeature operations that contain a mix of join and non-join query expressions can contain component feature collections containing a mixture of wfs:member and wfs:Tuple elements. EXAMPLE 2 The following fragment shows a response document for a GetFeature operation that contains a mix of join and non-join query expressions. ?xml version=1.0 encoding=UTF-8? wfs:FeatureCollection timeStamp=2008-08-01T22:47:02 numberMatched=349 numberReturned=300 xmlns=http:www.someserver.commyns xmlns:wfs=http:www.opengis.netwfs2.0 xmlns:gml=http:www.opengis.netgml3.2 xmlns:xsi=http:www.w3.org2001XMLSchema-instance xsi:schemaLocation=http:www.someserver.commyns .RoadRail.xsd http:www.opengis.netwfs2.0 http:schemas.opengis.netwfs2.0.0wfs.xsd http:www.opengis.netgml3.2 http:schemas.opengis.netgml3.2.1gml.xsd wfs:boundedBy gml:Envelope srsName=urn:ogc:def:crs:EPSG::4326 gml:lowerCorner-32.7638053894043 104.1429748535156gml:lowerCorner