|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.expr.AbstractExpr
org.geotools.expr.AbstractGeometryExpr
Default implementation of GeometryExpr.
Provides chaining access to appropriate Expr constructors. Allows use of literal Geometry objects via Exprs.geom( literal ).
| Field Summary | |
protected FilterFactory |
factory
|
| Constructor Summary | |
AbstractGeometryExpr()
|
|
| Method Summary | |
Expr |
and(Expr expr)
Explicit Expr chain extention - required for custom Expressions. |
Expr |
bbox(com.vividsolutions.jts.geom.Envelope bbox)
Convience method for: geom().disjoint( geom( bbox )).not() |
Expr |
between(Expr min,
Expr max)
min <= expr <= max |
GeometryExpr |
beyond(com.vividsolutions.jts.geom.Envelope extent,
double distance)
Convience method allowing literal extent |
GeometryExpr |
beyond(com.vividsolutions.jts.geom.Geometry geometry,
double distance)
Convience method allowing literal geometry |
GeometryExpr |
beyond(GeometryExpr expr,
double distance)
|
GeometryExpr |
contains(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
contains(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
contains(GeometryExpr expr)
|
GeometryExpr |
crosses(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
crosses(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
crosses(GeometryExpr expr)
|
GeometryExpr |
disjoint(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
disjoint(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
disjoint(GeometryExpr expr)
|
GeometryExpr |
dwithin(com.vividsolutions.jts.geom.Envelope extent,
double distance)
Convience method allowing literal extent |
GeometryExpr |
dwithin(com.vividsolutions.jts.geom.Geometry geometry,
double distance)
Convience method allowing literal geometry |
GeometryExpr |
dwithin(GeometryExpr expr,
double distance)
|
Expr |
eq(Expr expr)
expr == expr |
GeometryExpr |
equal(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
equal(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
equal(GeometryExpr expr)
|
Expr |
eval()
Evaludate Expr - with LiteralExpr as a goal. |
Expression |
expression(FeatureType schema)
Turns a Filter into an a logical true/false expression. |
Expr |
fid(java.util.Set fids)
expr.filter( fids ) Restruct current Expr to provided featureId(s). |
Expr |
fid(java.lang.String featureID)
Convience method for accessing a single fid |
Filter |
filter(FeatureType schema)
Useful super class that casts expressions into a Filter. |
Expr |
fn(java.lang.String name)
name( expr ) |
Expr |
fn(java.lang.String name,
Expr expr)
name( expr, expr ) |
Expr |
fn(java.lang.String name,
Expr[] expr)
name( expr[0], expr[0], ... ) |
Expr |
gt(Expr expr)
expr > expr |
Expr |
gte(Expr expr)
expr >= expr |
GeometryExpr |
intersects(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
intersects(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
intersects(GeometryExpr expr)
|
Expr |
lt(Expr expr)
expr < expr |
Expr |
lte(Expr expr)
expr <= expr |
Expr |
ne(Expr expr)
expr ! |
Expr |
not()
! |
Expr |
notNull()
expr ! |
Expr |
or(Expr expr)
Expr Disjunction |
GeometryExpr |
overlaps(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
overlaps(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
overlaps(GeometryExpr expr)
|
Expr |
reduce(java.lang.String bind)
Reduce attributes matching "bind/x" to "x". |
Expr |
resolve(org.opengis.catalog.MetadataEntity metadata)
Bind all meta entries according to provided metadata. |
Expr |
resolve(java.lang.String bind,
Feature feature)
Bind attributes matching "bind/x" to feature.getAttribute("x"). |
GeometryExpr |
touches(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
touches(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
touches(GeometryExpr expr)
|
GeometryExpr |
within(com.vividsolutions.jts.geom.Envelope extent)
Convience method allowing literal extent |
GeometryExpr |
within(com.vividsolutions.jts.geom.Geometry geometry)
Convience method allowing literal geometry |
GeometryExpr |
within(GeometryExpr expr)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.geotools.expr.Expr |
and, bbox, between, eq, eval, expression, fid, fid, filter, fn, fn, fn, gt, gte, lt, lte, ne, not, notNull, or, reduce, resolve, resolve |
| Field Detail |
protected FilterFactory factory
| Constructor Detail |
public AbstractGeometryExpr()
| Method Detail |
public GeometryExpr beyond(GeometryExpr expr,
double distance)
beyond in interface GeometryExpr
public GeometryExpr beyond(com.vividsolutions.jts.geom.Geometry geometry,
double distance)
beyond in interface GeometryExpr
public GeometryExpr beyond(com.vividsolutions.jts.geom.Envelope extent,
double distance)
beyond in interface GeometryExprpublic GeometryExpr contains(GeometryExpr expr)
contains in interface GeometryExprpublic GeometryExpr contains(com.vividsolutions.jts.geom.Geometry geometry)
contains in interface GeometryExprpublic GeometryExpr contains(com.vividsolutions.jts.geom.Envelope extent)
contains in interface GeometryExprpublic GeometryExpr crosses(GeometryExpr expr)
crosses in interface GeometryExprpublic GeometryExpr crosses(com.vividsolutions.jts.geom.Geometry geometry)
crosses in interface GeometryExprpublic GeometryExpr crosses(com.vividsolutions.jts.geom.Envelope extent)
crosses in interface GeometryExprpublic GeometryExpr disjoint(GeometryExpr expr)
disjoint in interface GeometryExprpublic GeometryExpr disjoint(com.vividsolutions.jts.geom.Geometry geometry)
disjoint in interface GeometryExprpublic GeometryExpr disjoint(com.vividsolutions.jts.geom.Envelope extent)
disjoint in interface GeometryExpr
public GeometryExpr dwithin(GeometryExpr expr,
double distance)
dwithin in interface GeometryExpr
public GeometryExpr dwithin(com.vividsolutions.jts.geom.Geometry geometry,
double distance)
dwithin in interface GeometryExpr
public GeometryExpr dwithin(com.vividsolutions.jts.geom.Envelope extent,
double distance)
dwithin in interface GeometryExprpublic GeometryExpr equal(GeometryExpr expr)
equal in interface GeometryExprpublic GeometryExpr equal(com.vividsolutions.jts.geom.Geometry geometry)
equal in interface GeometryExprpublic GeometryExpr equal(com.vividsolutions.jts.geom.Envelope extent)
equal in interface GeometryExprpublic GeometryExpr intersects(GeometryExpr expr)
intersects in interface GeometryExprpublic GeometryExpr intersects(com.vividsolutions.jts.geom.Geometry geometry)
intersects in interface GeometryExprpublic GeometryExpr intersects(com.vividsolutions.jts.geom.Envelope extent)
intersects in interface GeometryExprpublic GeometryExpr overlaps(GeometryExpr expr)
overlaps in interface GeometryExprpublic GeometryExpr overlaps(com.vividsolutions.jts.geom.Geometry geometry)
overlaps in interface GeometryExprpublic GeometryExpr overlaps(com.vividsolutions.jts.geom.Envelope extent)
overlaps in interface GeometryExprpublic GeometryExpr touches(GeometryExpr expr)
touches in interface GeometryExprpublic GeometryExpr touches(com.vividsolutions.jts.geom.Geometry geometry)
touches in interface GeometryExprpublic GeometryExpr touches(com.vividsolutions.jts.geom.Envelope extent)
touches in interface GeometryExprpublic GeometryExpr within(GeometryExpr expr)
within in interface GeometryExprpublic GeometryExpr within(com.vividsolutions.jts.geom.Geometry geometry)
within in interface GeometryExprpublic GeometryExpr within(com.vividsolutions.jts.geom.Envelope extent)
within in interface GeometryExprpublic Expr eval()
By default this method simply returns the current Expr.
eval in interface Exprpublic Expr resolve(org.opengis.catalog.MetadataEntity metadata)
Feature
resolve in interface Exprmetadata -
public Expr reduce(java.lang.String bind)
This may be used to reduce an Expr as part of an otter join, to something simple that can be passed off to an DataStore by way of filter( FeatureType ).
Example:
FeatureType RIVER = river.getSchema();
FeatureType HAZZARD = hazard.getSchema();
Expr joinExpr = Exprs.attribute("river/name").eq( Exprs.attribute("hazzard/river") );
FeatureReader outer = river.getFeatures().reader();
while( reader.hasNext() ){
Feature aRiver = outer.next();
Expr inner = joinExpr.resolve( "river", aRiver ).reduce( "hazzard" );
FeatureReader inner = district.getFeatures( inner.filter( HAZZARD ) );
while( inner.hasNext() ){
Feature aHazzard = inner.next();
// code here has access to both aRiver and aHazzard
}
inner.close();
}
outer.close();
reduce in interface Expr
public Expr resolve(java.lang.String bind,
Feature feature)
This may be used to reduce an Expr as part of an otter join, to something simple that can be passed off to an DataStore by way of filter( FeatureType ).
resolve in interface Exprbind - feature -
public Filter filter(FeatureType schema)
throws java.io.IOException
To turn Expression into a Filter I am going to follow the usual Perl defaults of "true".
filter in interface Exprjava.io.IOException
public Expression expression(FeatureType schema)
throws java.io.IOException
expression in interface Exprjava.io.IOExceptionpublic Expr bbox(com.vividsolutions.jts.geom.Envelope bbox)
bbox in interface Exprpublic Expr fid(java.lang.String featureID)
fid in interface Exprpublic Expr fid(java.util.Set fids)
ExprRestruct current Expr to provided featureId(s).
fid in interface Exprpublic Expr not()
ExprInvert of logical TRUTH value. Can be used to test for non contained fitler contents or FALSE Expressions
not in interface Exprpublic Expr and(Expr expr)
Expr
and in interface Exprexpr -
public Expr or(Expr expr)
Expr
or in interface Exprpublic Expr eq(Expr expr)
Expr
eq in interface Exprpublic Expr gt(Expr expr)
Expr
gt in interface Exprpublic Expr gte(Expr expr)
Expr
gte in interface Exprpublic Expr lt(Expr expr)
Expr
lt in interface Exprpublic Expr lte(Expr expr)
Expr
lte in interface Exprpublic Expr ne(Expr expr)
Expr
ne in interface Expr
public Expr between(Expr min,
Expr max)
Expr
between in interface Exprpublic Expr notNull()
Expr
notNull in interface Exprpublic Expr fn(java.lang.String name)
Expr
fn in interface Expr
public Expr fn(java.lang.String name,
Expr expr)
Expr
fn in interface Expr
public Expr fn(java.lang.String name,
Expr[] expr)
Expr
fn in interface Expr
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||