I can't find an example of this in the filter spec.

I see:


<Filter>
 <And>
  <PropertyIsLessThan>
   <PropertyName>DEPTH</PropertyName>
   <Literal>30</Literal>
  </PropertyIsLessThan>
  <Not>
   <Disjoint>
    <PropertyName>Geometry</PropertyName>
<gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#63266405";>
      <gml:lowerCorner>13.0983 31.5899</gml:lowerCorner>
      <gml:upperCorner>35.5472 42.8143</gml:upperCorner>
     </gml:Envelope>
   </Disjoint>
  </Not>
 </And>
</Filter>

which I'm interpreting you say should be:

<Filter>
 <And>
  <PropertyIsLessThan>
   <PropertyName>DEPTH</PropertyName>
   <Literal>30</Literal>
  </PropertyIsLessThan>
 </And>
  <Not>
   <Disjoint>
    <PropertyName>Geometry</PropertyName>
<gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#63266405";>
      <gml:lowerCorner>13.0983 31.5899</gml:lowerCorner>
      <gml:upperCorner>35.5472 42.8143</gml:upperCorner>
     </gml:Envelope>
   </Disjoint>
  </Not>
</Filter>

?


Also on the WFS cite tests, there is:

<wfs:GetFeature
  service="WFS"
  version="1.0.0"
  outputFormat="GML2"
  xmlns:cdf="http://www.opengis.net/cite/data";
  xmlns:wfs="http://www.opengis.net/wfs";
  xmlns:ogc="http://www.opengis.net/ogc";
>
  <wfs:Query typeName="cdf:Other">
    <ogc:Filter>
      <ogc:Or>
        <ogc:PropertyIsEqualTo>
          <ogc:PropertyName>cdf:integers</ogc:PropertyName>
          <ogc:Literal>10</ogc:Literal>
        </ogc:PropertyIsEqualTo>
        <ogc:PropertyIsEqualTo>
          <ogc:PropertyName>cdf:integers</ogc:PropertyName>
          <ogc:Literal>10</ogc:Literal>
        </ogc:PropertyIsEqualTo>
      </ogc:Or>
    </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

That should be:

<wfs:GetFeature
  service="WFS"
  version="1.0.0"
  outputFormat="GML2"
  xmlns:cdf="http://www.opengis.net/cite/data";
  xmlns:wfs="http://www.opengis.net/wfs";
  xmlns:ogc="http://www.opengis.net/ogc";
>
  <wfs:Query typeName="cdf:Other">
    <ogc:Filter>
      <ogc:Or>
        <ogc:PropertyIsEqualTo>
          <ogc:PropertyName>cdf:integers</ogc:PropertyName>
          <ogc:Literal>10</ogc:Literal>
        </ogc:PropertyIsEqualTo>
      </ogc:Or>
        <ogc:PropertyIsEqualTo>
          <ogc:PropertyName>cdf:integers</ogc:PropertyName>
          <ogc:Literal>10</ogc:Literal>
        </ogc:PropertyIsEqualTo>
    </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

under this ionic schema?

Or are you saying it's just for featureid stuff? Which I also don't find examples of in the filter spec...

Looking at the schema I think I see what you're saying, a featureid isn't one of the options under the logic type.

But strictly following the schema, it shouldn't be legal to combine a featureId filter with _anything_. And if you're to go with the ionic way, are they implying that since a featureid filter is next to an Or filter it should be an or? And if it's next to an And should it be an and? What's the implied behavior if there's no logic filter at all? Like if I just make a bbox filter and put a featureid next to it? Is it Or or And?

What does cubewerx do? This sounds like an issue we should sort out with the implementors... At least we should email wfs-dev.

Chris

Jesse Eichar wrote:
The same issue exists in Filter 1.1. And using a function won't help because third party servers won't support the function. I working with Ionic's Redspider server and it can't read our filters. I've made up a work around. I'm adding a hint to the XML Filter Encoding so that you can set the compliance level. When communicating with Geoserver I use the default compliance Ionic is another level (medium) and then there is strict. Ionic allows:

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


Which is still not legal but is very useful. In the case of NOT( FidFilter ) I'm doing the processing on the client.

We will have to think about how we want to handle this issue in general though.

Jesse


On 4-Aug-06, at 12:50 AM, Jody Garnett wrote:

Jesse can you please confirm against Filter 1.1? What you say sounds pretty silly, if needed we can work around it with a function :-( Also note that Filter is available in a BNF form as part of the catalog specification - we really need to take a common ground, and police what is created through the use of specification specific Factories.

I would also ask Justin for comment as he has spent a lot of time on the ground with Filter.
Jody
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
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net <mailto:Geotools-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geotools-devel




!DSPAM:1003,44d364d9186091365099012!


------------------------------------------------------------------------

-------------------------------------------------------------------------
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

!DSPAM:1003,44d364d9186091365099012!


------------------------------------------------------------------------

_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


!DSPAM:1003,44d364d9186091365099012!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
email;internet:[EMAIL PROTECTED]
title:VP, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to