public class JTSSpatialPredicates extends Object
Predicate
s.SpatialRestrictions
Modifier | Constructor and Description |
---|---|
protected |
JTSSpatialPredicates() |
Modifier and Type | Method and Description |
---|---|
static Predicate |
contains(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially contains" constraint.
|
static Predicate |
contains(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially contains" constraint.
|
static Predicate |
crosses(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially crosses" constraint.
|
static Predicate |
crosses(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially crosses" constraint.
|
static Predicate |
disjoint(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially disjoint" constraint.
|
static Predicate |
disjoint(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially disjoint" constraint.
|
static Predicate |
distanceWithin(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2,
double distance)
Create a predicate for testing the arguments for "distance within" constraint.
|
static Predicate |
distanceWithin(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2,
Expression<Double> distance)
Create a predicate for testing the arguments for "distance within" constraint.
|
static Predicate |
distanceWithin(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2,
double distance)
Create a predicate for testing the arguments for "distance within" constraint.
|
static Predicate |
distanceWithin(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2,
Expression<Double> distance)
Create a predicate for testing the arguments for "distance within" constraint.
|
static Predicate |
eq(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially equal" constraint.
|
static Predicate |
eq(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially equal" constraint.
|
static Predicate |
filter(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for bounding box overlap constraint.
|
static Predicate |
filter(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for bounding box overlap constraint.
|
static Predicate |
filterByPolygon(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry,
org.locationtech.jts.geom.Envelope envelope,
int srid)
Create a predicate for testing the arguments for bounding box overlap constraint.
|
static Predicate |
havingSRID(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry,
Expression<Integer> srid)
Create a predicate for testing the arguments for "having srid" constraint.
|
static Predicate |
havingSRID(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry,
int srid)
Create a predicate for testing the arguments for "having srid" constraint.
|
static Predicate |
intersects(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially intersects" constraint.
|
static Predicate |
intersects(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially intersects" constraint.
|
static Predicate |
isEmpty(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry)
Create a predicate for testing the arguments for "is empty" constraint.
|
static Predicate |
isNotEmpty(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry)
Create a predicate for testing the arguments for "is not empty" constraint.
|
static Predicate |
overlaps(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially overlaps" constraint.
|
static Predicate |
overlaps(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially overlaps" constraint.
|
static Predicate |
touches(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially touches" constraint.
|
static Predicate |
touches(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially touches" constraint.
|
static Predicate |
within(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
Create a predicate for testing the arguments for "spatially within" constraint.
|
static Predicate |
within(CriteriaBuilder criteriaBuilder,
Expression<? extends org.locationtech.jts.geom.Geometry> geometry1,
org.locationtech.jts.geom.Geometry geometry2)
Create a predicate for testing the arguments for "spatially within" constraint.
|
public static Predicate eq(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.eq(String, Geometry)
public static Predicate eq(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valueeq(CriteriaBuilder, Expression, Expression)
public static Predicate within(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.within(String, Geometry)
public static Predicate within(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuewithin(CriteriaBuilder, Expression, Expression)
public static Predicate contains(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.contains(String, Geometry)
public static Predicate contains(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuecontains(CriteriaBuilder, Expression, Expression)
public static Predicate crosses(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.crosses(String, Geometry)
public static Predicate crosses(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuecrosses(CriteriaBuilder, Expression, Expression)
public static Predicate disjoint(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.disjoint(String, Geometry)
public static Predicate disjoint(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuedisjoint(CriteriaBuilder, Expression, Expression)
public static Predicate intersects(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.intersects(String, Geometry)
public static Predicate intersects(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valueintersects(CriteriaBuilder, Expression, Expression)
public static Predicate overlaps(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.overlaps(String, Geometry)
public static Predicate overlaps(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valueoverlaps(CriteriaBuilder, Expression, Expression)
public static Predicate touches(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressionSpatialRestrictions.touches(String, Geometry)
public static Predicate touches(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuetouches(CriteriaBuilder, Expression, Expression)
public static Predicate filter(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expression whose bounding box to use in the comparisonJTSFilterPredicate
,
SpatialRestrictions.filter(String, Geometry)
public static Predicate filter(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry value whose bounding box to use in the comparisonJTSFilterPredicate
,
SpatialRestrictions.filter(String, Geometry)
public static Predicate filterByPolygon(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, org.locationtech.jts.geom.Envelope envelope, int srid)
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionenvelope
- envelope or bounding box to use in the comparisonsrid
- the SRID of the bounding boxJTSFilterPredicate
,
SpatialRestrictions.filter(String, Envelope, int)
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2, Expression<Double> distance)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressiondistance
- distance expressionSpatialRestrictions.distanceWithin(String, Geometry, double)
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2, Expression<Double> distance)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuedistance
- distance expressiondistanceWithin(CriteriaBuilder, Expression, Expression, Expression)
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, org.locationtech.jts.geom.Geometry geometry2, double distance)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry valuedistance
- distance valuedistanceWithin(CriteriaBuilder, Expression, Expression, Expression)
public static Predicate distanceWithin(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry1, Expression<? extends org.locationtech.jts.geom.Geometry> geometry2, double distance)
criteriaBuilder
- CriteriaBuildergeometry1
- geometry expressiongeometry2
- geometry expressiondistance
- distance valuedistanceWithin(CriteriaBuilder, Expression, Expression, Expression)
public static Predicate havingSRID(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, Expression<Integer> srid)
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionsrid
- SRID expressionSpatialRestrictions.havingSRID(String, int)
public static Predicate havingSRID(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry, int srid)
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionsrid
- SRID expressionhavingSRID(CriteriaBuilder, Expression, Expression)
public static Predicate isEmpty(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry)
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionSpatialRestrictions.isEmpty(String)
public static Predicate isNotEmpty(CriteriaBuilder criteriaBuilder, Expression<? extends org.locationtech.jts.geom.Geometry> geometry)
criteriaBuilder
- CriteriaBuildergeometry
- geometry expressionSpatialRestrictions.isNotEmpty(String)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.