org.hibernatespatial.criterion
Class SpatialRestrictions
java.lang.Object
org.hibernatespatial.criterion.SpatialRestrictions
public class SpatialRestrictions
- extends Object
Static Factory Class for creating spatial criterion types.
The criterion types created by this class implement the spatial query
expressions of the OpenGIS Simple Features Specification for SQL, Revision
1.1.
In addition, it provides for a simple spatial filter
that
works mostly using the spatial index. This corresponds to the Oracle
Spatial's "SDO_FILTER" function, or the "&&" operator of PostGIS.
- Author:
- Karel Maesen
Method Summary |
static SpatialRelateExpression |
contains(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static SpatialRelateExpression |
crosses(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static SpatialRelateExpression |
disjoint(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static org.hibernate.criterion.Criterion |
distanceWithin(String propertyName,
com.vividsolutions.jts.geom.Geometry geometry,
double distance)
|
static SpatialRelateExpression |
eq(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static SpatialFilter |
filter(String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int SRID)
|
static SpatialFilter |
filter(String propertyName,
com.vividsolutions.jts.geom.Geometry filter)
|
static org.hibernate.criterion.Criterion |
havingSRID(String propertyName,
int srid)
|
static SpatialRelateExpression |
intersects(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static org.hibernate.criterion.Criterion |
isEmpty(String propertyName)
|
static org.hibernate.criterion.Criterion |
isNotEmpty(String propertyName)
|
static SpatialRelateExpression |
overlaps(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static org.hibernate.criterion.Criterion |
spatialRestriction(int relation,
String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static SpatialRelateExpression |
touches(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
static SpatialRelateExpression |
within(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eq
public static SpatialRelateExpression eq(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
within
public static SpatialRelateExpression within(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
contains
public static SpatialRelateExpression contains(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
crosses
public static SpatialRelateExpression crosses(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
disjoint
public static SpatialRelateExpression disjoint(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
intersects
public static SpatialRelateExpression intersects(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
overlaps
public static SpatialRelateExpression overlaps(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
touches
public static SpatialRelateExpression touches(String propertyName,
com.vividsolutions.jts.geom.Geometry value)
filter
public static SpatialFilter filter(String propertyName,
com.vividsolutions.jts.geom.Geometry filter)
filter
public static SpatialFilter filter(String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int SRID)
distanceWithin
public static org.hibernate.criterion.Criterion distanceWithin(String propertyName,
com.vividsolutions.jts.geom.Geometry geometry,
double distance)
havingSRID
public static org.hibernate.criterion.Criterion havingSRID(String propertyName,
int srid)
isEmpty
public static org.hibernate.criterion.Criterion isEmpty(String propertyName)
isNotEmpty
public static org.hibernate.criterion.Criterion isNotEmpty(String propertyName)
spatialRestriction
public static org.hibernate.criterion.Criterion spatialRestriction(int relation,
String propertyName,
com.vividsolutions.jts.geom.Geometry value)
Copyright © 2011 hibernatespatial.org. All Rights Reserved.