I don't think bindings have been provided yet for Filter 2.0.
(We can only parse things we have code for ... if not giving you a hash map is
our fall back position).
However some of the data structure changes required for Filter 2.0 have been
approved and applied to the code base:
- Detailed Argument and Return Info for FunctionName
(http://docs.codehaus.org/display/GEOTOOLS/Detailed+Argument+and+Return+Info+for+FunctionName)
- Temporal Filters (http://docs.codehaus.org/display/GEOTOOLS/Temporal+Filters)
- Support Multi-Valued Attributes in Filter Comparison Operators
(http://docs.codehaus.org/display/GEOTOOLS/Support+Multi-Valued+Attributes+in+Filter+Comparison+Operators)
Perhaps you would like to help out on the parsing end of things?
--
Jody Garnett
On Tuesday, 28 June 2011 at 9:30 PM, Errico Demly Chirulli wrote:
> Hi there,
> parsing of OGC filter version 2.0 documents always ends up with an Hashmap.
> I'm using Geotools 2.7.1.
> Here is my code :
>
>
> Main
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.InputStream;
> import org.geotools.filter.v2_0.FESConfiguration;
> import org.geotools.xml.Parser;
>
> public class MainXML {
> public static void main(String[] args) {
> try {
> InputStream in = new FileInputStream(new
> File("C:\\Broker\\Workspace\\GeoToolsTest\\src\\OGCFilter.xml"));
> Parser parser = new Parser(new FESConfiguration());
> Object parsedObject = parser.parse(in);
> System.out.println(parsedObject.getClass().getName());
> System.out.println(parsedObject);
> } catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> OGCFilter.xml
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> <?xml version="1.0"?>
> <fes:Filter xmlns:fes="http://www.opengis.net/fes/2.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.opengis.net/fes/2.0
> http://schemas.opengis.net/filter/2.0/filterAll.xsd">
> <fes:PropertyIsEqualTo>
> <fes:ValueReference>SomeProperty</fes:ValueReference>
> <fes:Literal>100</fes:Literal>
> </fes:PropertyIsEqualTo>
> </fes:Filter>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
> Output
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> java.util.HashMap
> {ValueReference=SomeProperty, Literal=100}
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> (mailto:[email protected])
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users