So since this only really affect WFS (at least at the moment) I'm going to make WFS output compliant when it writes it.  I'm also going to make sure that our parsers can read the filter in its proper form.


Oh I looked at the spec and found that you can't do:
<Filter>
<Or>
<BBox> some box </BBox>
</Or>
<FeatureId fid="fid" />
</Filter>


you can only do 

<Filter>
<FeatureId fid="fid" />
</Filter>
or
<Filter>
<BBox> some box </BBox>
</Filter>

This is because a Filter is a Choice between spatial, logical, comparison and FeatureID elements.  And logical elements are choice between logical, spatial and comparison elements.

Jesse



On 3-Aug-06, at 10:42 AM, Jesse Eichar wrote:

Hi,

I've been browsing through the filter spec and to my dismay have  
learned that the following is not legal:

<Filter>
<Or>
<BBox> some box </BBox>
<FeatureId fid="fid" />
</Or>
</Filter>

To be compliant with the spec it is supposed to be:

<Filter>
<Or>
<BBox> some box </BBox>
</Or>
<FeatureId fid="fid" />
</Filter>


We also can not do the following:

<Filter>
<Not>
<FeatureId fid="fid"/>
</Not>
</Filter>


Our filter implementation allows both so we can't interoperate  
properly with others because we can make illegal documents....

Looking for comments on what should be done here.

Jesse



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
_______________________________________________
Geotools-devel mailing list

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to