public class SpatialFilter
extends java.lang.Object
implements org.hibernate.criterion.Criterion
Criterion constraining a geometry property to have a bounding box that overlaps with
a specified bounding box.| Constructor and Description |
|---|
SpatialFilter(java.lang.String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int srid)
Constructs an instance with the specified property and the bounding box of the specified geometry.
|
SpatialFilter(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry filter)
Constructs an instance with the specified property and the bounding box of the specified geometry.
|
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.engine.spi.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
java.lang.String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
public SpatialFilter(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry filter)
propertyName - The name of the propety being constrainedfilter - The geometry whose bounding box is used as search geometrypublic SpatialFilter(java.lang.String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int srid)
propertyName - The name of the propety being constrainedenvelope - The bounding box is used as search geometrysrid - The SRID of the specified bounding boxpublic org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
getTypedValues in interface org.hibernate.criterion.Criterionorg.hibernate.HibernateExceptionpublic java.lang.String toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
toSqlString in interface org.hibernate.criterion.Criterionorg.hibernate.HibernateExceptionCopyright © 2001-2025 Red Hat, Inc. All Rights Reserved.