org.geotools.filter
Class ExpressionDOMParser

java.lang.Object
  extended byorg.geotools.filter.ExpressionDOMParser

public final class ExpressionDOMParser
extends java.lang.Object

parsez short sections of gml for use in expressions and filters Hopefully we can get away without a full parser here.

Author:
iant

Method Summary
static java.util.List parseCoords(org.w3c.dom.Node root)
          Parses a dom node into a coordinate list.
static Expression parseExpression(org.w3c.dom.Node root)
          parses an expression for a filter.
static com.vividsolutions.jts.geom.Geometry parseGML(org.w3c.dom.Node root)
          Parses the gml of this node to jts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseExpression

public static Expression parseExpression(org.w3c.dom.Node root)
parses an expression for a filter.

Parameters:
root - the root node to parse, should be an filter expression.
Returns:
the geotools representation of the expression held in the node.

parseGML

public static com.vividsolutions.jts.geom.Geometry parseGML(org.w3c.dom.Node root)
Parses the gml of this node to jts.

Parameters:
root - the parent node of the gml to parse.
Returns:
the java representation of the geometry contained in root.

parseCoords

public static java.util.List parseCoords(org.w3c.dom.Node root)
Parses a dom node into a coordinate list.

Parameters:
root - the root node representation of gml:coordinates.
Returns:
the coordinates in a list.


Copyright © GeoTools. All Rights Reserved.