public class SpatialRestrictions
extends java.lang.Object
filter
that
works mostly using the spatial index. This corresponds to the Oracle
Spatial's "SDO_FILTER" function, or the "&&" operator of PostGIS.Modifier and Type | Method and Description |
---|---|
static SpatialRelateExpression |
contains(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially contains" constraint to the named property
|
static SpatialRelateExpression |
crosses(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially crosses" constraint to the named property
|
static SpatialRelateExpression |
disjoint(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially disjoint" constraint to the named property
|
static Criterion |
distanceWithin(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry geometry,
double distance)
Apply a "distance within" constraint to the named property
|
static SpatialRelateExpression |
eq(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially equal" constraint to the named property
|
static SpatialFilter |
filter(java.lang.String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int srid)
Apply a bounding box overlap constraint to the named property
|
static SpatialFilter |
filter(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a bounding box overlap constraint to the named property
|
static Criterion |
havingSRID(java.lang.String propertyName,
int srid)
Apply a "having srid" constraint to the named property
|
static SpatialRelateExpression |
intersects(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially intersects" constraint to the named property
|
static Criterion |
isEmpty(java.lang.String propertyName)
Apply an "is empty" constraint to the named property
|
static Criterion |
isNotEmpty(java.lang.String propertyName)
Apply an "is not empty" constraint to the named property
|
static SpatialRelateExpression |
overlaps(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially overlaps" constraint to the named property
|
static Criterion |
spatialRestriction(int relation,
java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply the specified spatial relation constraint to the named property.
|
static SpatialRelateExpression |
touches(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially touches" constraint to the named property
|
static SpatialRelateExpression |
within(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Apply a "spatially within" constraint to the named property
|
public static SpatialRelateExpression eq(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression within(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression contains(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression crosses(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression disjoint(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression intersects(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression overlaps(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialRelateExpression touches(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value to use in comparisonSpatialRelateExpression
public static SpatialFilter filter(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
propertyName
- The name of the propertyvalue
- The geometry value whose bounding box to use in the comparisonSpatialFilter
public static SpatialFilter filter(java.lang.String propertyName, com.vividsolutions.jts.geom.Envelope envelope, int srid)
propertyName
- The name of the propertyenvelope
- The envelope or bounding box to use in the comparisonsrid
- the SRID of the bounding boxSpatialFilter
public static Criterion distanceWithin(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geometry, double distance)
propertyName
- The name of the propertygeometry
- The geometry value to use in the comparisondistance
- The distanceDWithinExpression
public static Criterion havingSRID(java.lang.String propertyName, int srid)
propertyName
- The name of the propertysrid
- The SRID value to use in the comparisonHavingSridExpression
public static Criterion isEmpty(java.lang.String propertyName)
propertyName
- The name of the propertyIsEmptyExpression
public static Criterion isNotEmpty(java.lang.String propertyName)
propertyName
- The name of the propertyIsEmptyExpression
public static Criterion spatialRestriction(int relation, java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry value)
relation
- The spatial relation to applypropertyName
- The name of the propertyvalue
- The geometry value to use in the comparisonSpatialFilter
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.