Hi Jesse,

you do not deserve it, but here is an answer:

             private Filter createAFilter (final FeatureType
featureType)
             {
               final Filter result
                  = FilterDOMParser.parseFilter
                       (DomUtilities.asDomTree
                           ("  <And
xmlns:gml=\"http://www.opengis.net/gml\";>"
                            + "  <Not>"
                            + "    <Disjoint>"
                            + "
<PropertyName>the_geom</PropertyName>"
                            + "      <gml:Box>"
                            + "        <gml:coordinates>7.98,36.5
17.2,44.65</gml:coordinates>"
                            + "      </gml:Box>"
                            + "    </Disjoint>"
                            + "  </Not>"
                            + "  <Or>"
                            + "    <PropertyIsEqualTo>"
                            + "      <PropertyName>DEPTH</PropertyName>"
                            + "      <Literal>100</Literal>"
                            + "    </PropertyIsEqualTo>"
                            + "    <PropertyIsEqualTo>"
                            + "      <PropertyName>DEPTH</PropertyName>"
                            + "      <Literal>1000</Literal>"
                            + "    </PropertyIsEqualTo>"
                            + "    <PropertyIsEqualTo>"
                            + "      <PropertyName>DEPTH</PropertyName>"
                            + "      <Literal>2000</Literal>"
                            + "    </PropertyIsEqualTo>"
                            + "    <PropertyIsEqualTo>"
                            + "      <PropertyName>DEPTH</PropertyName>"
                            + "      <Literal>3000</Literal>"
                            + "    </PropertyIsEqualTo>"
                            + "    <PropertyIsEqualTo>"
                            + "      <PropertyName>DEPTH</PropertyName>"
                            + "      <Literal>4000</Literal>"
                            + "    </PropertyIsEqualTo>"
                            + "  </Or>"
                            + "</And>"));
               Log.getLogger ().config ("applying filter " + result);
               return result;
             } 

Cheers, Arjan.

> -----Original Message-----
> From: Jesse Eichar [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 12, 2005 8:03 PM
> To: [email protected]
> Subject: [Geotools-gt2-users] FilterFilter and other filter parsers?
> 
> Hi
> 
> How the heck am I supposed to create a filter from an XML string?
> 
> Jesse
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, 
> discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 


***PRIVILEGED AND CONFIDENTIAL*** 
The information contained in this e-mail message (including any attached files)
is intended for the use of the addressee(s) only and is privileged information.
The information should neither be posted to the Internet, nor published in any
other public domain, without the express permission of the sender. If you are
not the intended recipient(s) or the recipient's representative, you are hereby
notified that any use, disclosure, copying or distribution of this communication
is prohibited. If you have received this communication in error please notify us
immediately at [EMAIL PROTECTED], and remove this message from 
your system.


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to