FW: [wfs-dev] sequence of Query elements

Bart van den Eijnden bartvde at xs4all.nl
Tue May 3 16:14:50 EST 2005


Hi Peter,

thanks for the reply, your response is a bit unclear to me though.

I am performing a GetFeature request like you wrote:

<GetFeature>
   <Query typeName="A"/>
   <Query typeName="B"/>
</GetFeature>

but then Mapserver as a WFS returns the typenames in the sequence that  
they are configured in the MAP file, so this could be first the results  
 from B and then the results from A (depending on the sequence in the  
configuration file). Is this incorrect according to spec? Should it always  
be the results from A followed by the results from B?

Best regards,
Bart

On Tue, 03 May 2005 16:34:53 -0400, Panagiotis (Peter) A. Vretanos  
<pvretano at cubewerx.com> wrote:

> Martin,
>
> Oops ... I did not see this ...
>
> The answer is that unless a SortBy is specified, there is no order
> implied in the response.
>
> However, I hope people understand that if you specify something like:
>
> <GetFeature>
>    <Query typeName="A B"/>
> </GetFeature>
>
> you do not get all the features in A and then all the features in B but
> you get the cross-product of AxB.  This is what happens when you specify
> a unconstrained JOIN operation.
>
> If you want to fetch A and then B, the correct request would be:
>
> <GetFeature>
>    <Query typeName="A"/>
>    <Query typeName="B"/>
> </GetFeature>
>
> In this case, you will get all the features in A and then all the
> features in B.
>
> Ciao.
>
> Martin Kyle wrote:
>> Hi Peter:
>>
>> Did this get answered at all?
>>
>> Martin
>>
>> -----Original Message-----
>> From: wfs-dev-bounces+mkyle=galdosinc.com at opengeospatial.org
>> [mailto:wfs-dev-bounces+mkyle=galdosinc.com at opengeospatial.org] On  
>> Behalf Of
>> Bart van den Eijnden
>> Sent: April 29, 2005 5:25 PM
>> To: wfs-dev at opengis.org
>> Subject: [wfs-dev] sequence of Query elements
>>
>> Hi list,
>>
>> I could not find this explicitly in the spec, is a server supposed to
>> return the results in the same sequence as a client requests the Query
>> typenames?
>>
>> If I ask for typename A first and then B in a GetFeature request, is a
>> service supposed to return the results in sequence A, B? Or can it  
>> return
>> the response in any sequence?
>>
>> Best regards,
>> Bart
>>
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/


More information about the wfs-dev mailing list