org.hibernatespatial.criterion
Class SpatialFilter
java.lang.Object
org.hibernatespatial.criterion.SpatialFilter
- All Implemented Interfaces:
- Serializable, org.hibernate.criterion.Criterion
public class SpatialFilter
- extends Object
- implements org.hibernate.criterion.Criterion
An implementation for a simple spatial filter. This Criterion
restricts the resultset to those features whose bounding box overlaps the
filter geometry. It is intended for quick, but inexact spatial queries.
- Author:
- Karel Maesen
- See Also:
- Serialized Form
Constructor Summary |
SpatialFilter(String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int SRID)
|
SpatialFilter(String propertyName,
com.vividsolutions.jts.geom.Geometry filter)
|
Method Summary |
org.hibernate.engine.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
|
String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpatialFilter
public SpatialFilter(String propertyName,
com.vividsolutions.jts.geom.Geometry filter)
SpatialFilter
public SpatialFilter(String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int SRID)
getTypedValues
public org.hibernate.engine.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Specified by:
getTypedValues
in interface org.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
toSqlString
public String toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Specified by:
toSqlString
in interface org.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
Copyright © 2011 hibernatespatial.org. All Rights Reserved.