Package com.querydsl.spatial
Class GeometryExpression<T extends org.geolatte.geom.Geometry>
java.lang.Object
com.querydsl.core.types.dsl.DslExpression<T>
com.querydsl.core.types.dsl.SimpleExpression<T>
com.querydsl.spatial.GeometryExpression<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Expression<T>
,Serializable
- Direct Known Subclasses:
AbstractGeometryCollectionExpression
,CurveExpression
,GeometryOperation
,GeometryPath
,PointExpression
,SurfaceExpression
public abstract class GeometryExpression<T extends org.geolatte.geom.Geometry>
extends SimpleExpression<T>
Geometry is the root class of the hierarchy. Geometry is an abstract (non-instantiable) class.
- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.types.dsl.DslExpression
hashCode, mixin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSimpleExpression<byte[]>
asBinary()
Exports this geometric object to a specific Well-known Binary Representation of Geometry.asText()
Exports this geometric object to a specific Well-known Text Representation of Geometry.GeometryExpression<org.geolatte.geom.Geometry>
boundary()
Returns the closure of the combinatorial boundary of this geometric objectGeometryExpression<org.geolatte.geom.Geometry>
buffer
(double distance) Returns a geometric object that represents all Points whose distance from this geometric object is less than or equal to distance.contains
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object “spatially contains” anotherGeometry.contains
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object “spatially contains” anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
Returns a geometric object that represents the convex hull of this geometric object.crosses
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object “spatially crosses’ anotherGeometry.crosses
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object “spatially crosses’ anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
difference
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set difference of this geometric object with anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
difference
(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set difference of this geometric object with anotherGeometry.The inherent dimension of this geometric object, which must be less than or equal to the coordinate dimension.disjoint
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object is “spatially disjoint” from anotherGeometry.disjoint
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object is “spatially disjoint” from anotherGeometry.distance
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns the shortest distance between any two Points in the two geometric objects as calculated in the spatial reference system of this geometric object.distance
(org.geolatte.geom.Geometry geometry) Returns the shortest distance between any two Points in the two geometric objects as calculated in the spatial reference system of this geometric object.distanceSphere
(Expression<? extends org.geolatte.geom.Geometry> geometry) distanceSpheroid
(Expression<? extends org.geolatte.geom.Geometry> geometry) GeometryExpression<org.geolatte.geom.Geometry>
envelope()
The minimum bounding box for this Geometry, returned as a Geometry.eq
(Expression<? super T> right) eq
(org.geolatte.geom.Geometry right) Returns the name of the instantiable subtype of Geometry of which this geometric object is an instantiable member.GeometryExpression<org.geolatte.geom.Geometry>
intersection
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set intersection of this geometric object with anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
intersection
(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set intersection of this geometric object with anotherGeometry.intersects
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object “spatially intersects” anotherGeometry.intersects
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object “spatially intersects” anotherGeometry.isEmpty()
Returns 1 (TRUE) if this geometric object is the empty Geometry.isSimple()
Returns 1 (TRUE) if this geometric object has no anomalous geometric points, such as self intersection or self tangency.overlaps
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object “spatially overlaps” anotherGeometry.overlaps
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object “spatially overlaps” anotherGeometry.relate
(Expression<? extends org.geolatte.geom.Geometry> geometry, String matrix) Returns 1 (TRUE) if this geometric object is spatially related to anotherGeometry by testing for intersections between the interior, boundary and exterior of the two geometric objects as specified by the values in the intersectionPatternMatrix.Returns 1 (TRUE) if this geometric object is spatially related to anotherGeometry by testing for intersections between the interior, boundary and exterior of the two geometric objects as specified by the values in the intersectionPatternMatrix.srid()
Returns the Spatial Reference System ID for this geometric object.GeometryExpression<org.geolatte.geom.Geometry>
symDifference
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set symmetric difference of this geometric object with anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
symDifference
(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set symmetric difference of this geometric object with anotherGeometry.touches
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object “spatially touches” anotherGeometry.touches
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object “spatially touches” anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
transform
(int srid) GeometryExpression<org.geolatte.geom.Geometry>
union
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set union of this geometric object with anotherGeometry.GeometryExpression<org.geolatte.geom.Geometry>
union
(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set union of this geometric object with anotherGeometry.within
(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.within
(org.geolatte.geom.Geometry geometry) Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.Methods inherited from class com.querydsl.core.types.dsl.SimpleExpression
as, as, count, countDistinct, eqAll, eqAll, eqAny, eqAny, in, in, in, in, in, isNotNull, isNull, ne, ne, neAll, neAny, notIn, notIn, notIn, notIn, notIn, nullif, nullif, when, when
Methods inherited from class com.querydsl.core.types.dsl.DslExpression
equals, getType, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.querydsl.core.types.Expression
accept
-
Constructor Details
-
GeometryExpression
-
-
Method Details
-
dimension
The inherent dimension of this geometric object, which must be less than or equal to the coordinate dimension. In non-homogeneous collections, this will return the largest topological dimension of the contained objects.- Returns:
- dimension
-
geometryType
Returns the name of the instantiable subtype of Geometry of which this geometric object is an instantiable member. The name of the subtype of Geometry is returned as a string.- Returns:
- geometry type
-
srid
Returns the Spatial Reference System ID for this geometric object. This will normally be a foreign key to an index of reference systems stored in either the same or some other datastore.- Returns:
- SRID
-
envelope
The minimum bounding box for this Geometry, returned as a Geometry. The polygon is defined by the corner points of the bounding box [(MINX, MINY), (MAXX, MINY), (MAXX, MAXY), (MINX, MAXY), (MINX, MINY)]. Minimums for Z and M may be added. The simplest representation of an Envelope is as two direct positions, one containing all the minimums, and another all the maximums. In some cases, this coordinate will be outside the range of validity for the Spatial Reference System.- Returns:
- envelope
-
asText
Exports this geometric object to a specific Well-known Text Representation of Geometry.- Returns:
- text representation
-
asBinary
Exports this geometric object to a specific Well-known Binary Representation of Geometry.- Returns:
- binary representation
-
isEmpty
Returns 1 (TRUE) if this geometric object is the empty Geometry. If true, then this geometric object represents the empty point set ∅ for the coordinate space.- Returns:
- empty
-
isSimple
Returns 1 (TRUE) if this geometric object has no anomalous geometric points, such as self intersection or self tangency. The description of each instantiable geometric class will include the specific conditions that cause an instance of that class to be classified as not simple.- Returns:
- simple
-
boundary
Returns the closure of the combinatorial boundary of this geometric object- Returns:
- boundary
-
eq
- Overrides:
eq
in classSimpleExpression<T extends org.geolatte.geom.Geometry>
-
eq
- Overrides:
eq
in classSimpleExpression<T extends org.geolatte.geom.Geometry>
-
disjoint
Returns 1 (TRUE) if this geometric object is “spatially disjoint” from anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if disjoint
-
disjoint
Returns 1 (TRUE) if this geometric object is “spatially disjoint” from anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if disjoint
-
intersects
Returns 1 (TRUE) if this geometric object “spatially intersects” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if intersects
-
intersects
Returns 1 (TRUE) if this geometric object “spatially intersects” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if intersects
-
touches
Returns 1 (TRUE) if this geometric object “spatially touches” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if touches
-
touches
Returns 1 (TRUE) if this geometric object “spatially touches” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if touches
-
crosses
Returns 1 (TRUE) if this geometric object “spatially crosses’ anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- trye, if crosses
-
crosses
Returns 1 (TRUE) if this geometric object “spatially crosses’ anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if crosses
-
within
Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if within
-
within
Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if within
-
contains
Returns 1 (TRUE) if this geometric object “spatially contains” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if contains
-
contains
Returns 1 (TRUE) if this geometric object “spatially contains” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if contains
-
overlaps
Returns 1 (TRUE) if this geometric object “spatially overlaps” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if overlaps
-
overlaps
Returns 1 (TRUE) if this geometric object “spatially overlaps” anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- true, if overlaps
-
relate
Returns 1 (TRUE) if this geometric object is spatially related to anotherGeometry by testing for intersections between the interior, boundary and exterior of the two geometric objects as specified by the values in the intersectionPatternMatrix. This returns FALSE if all the tested intersections are empty except exterior (this) intersect exterior (another).- Parameters:
geometry
- other geometrymatrix
- matrix- Returns:
- true, if this geometry is spatially related to the other
-
relate
public BooleanExpression relate(Expression<? extends org.geolatte.geom.Geometry> geometry, String matrix) Returns 1 (TRUE) if this geometric object is spatially related to anotherGeometry by testing for intersections between the interior, boundary and exterior of the two geometric objects as specified by the values in the intersectionPatternMatrix. This returns FALSE if all the tested intersections are empty except exterior (this) intersect exterior (another).- Parameters:
geometry
- other geometrymatrix
- matrix- Returns:
- true, if this geometry is spatially related to the other
-
distance
Returns the shortest distance between any two Points in the two geometric objects as calculated in the spatial reference system of this geometric object. Because the geometries are closed, it is possible to find a point on each geometric object involved, such that the distance between these 2 points is the returned distance between their geometric objects.- Parameters:
geometry
- other geometry- Returns:
- distance between this and the other geometry
-
distance
Returns the shortest distance between any two Points in the two geometric objects as calculated in the spatial reference system of this geometric object. Because the geometries are closed, it is possible to find a point on each geometric object involved, such that the distance between these 2 points is the returned distance between their geometric objects.- Parameters:
geometry
- other geometry- Returns:
- distance between this and the other geometry
-
distanceSphere
public NumberExpression<Double> distanceSphere(Expression<? extends org.geolatte.geom.Geometry> geometry) -
distanceSpheroid
public NumberExpression<Double> distanceSpheroid(Expression<? extends org.geolatte.geom.Geometry> geometry) -
buffer
Returns a geometric object that represents all Points whose distance from this geometric object is less than or equal to distance. Calculations are in the spatial reference system of this geometric object. Because of the limitations of linear interpolation, there will often be some relatively small error in this distance, but it should be near the resolution of the coordinates used.- Parameters:
distance
- distance- Returns:
- buffer
-
convexHull
Returns a geometric object that represents the convex hull of this geometric object. Convex hulls, being dependent on straight lines, can be accurately represented in linear interpolations for any geometry restricted to linear interpolations.- Returns:
- convex hull
-
intersection
public GeometryExpression<org.geolatte.geom.Geometry> intersection(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set intersection of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- intersection of this and the other geometry
-
intersection
public GeometryExpression<org.geolatte.geom.Geometry> intersection(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set intersection of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- intersection of this and the other geometry
-
union
Returns a geometric object that represents the Point set union of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- union of this and the other geometry
-
union
public GeometryExpression<org.geolatte.geom.Geometry> union(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set union of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- union of this and the other geometry
-
difference
public GeometryExpression<org.geolatte.geom.Geometry> difference(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set difference of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- difference between this and the other geometry
-
difference
public GeometryExpression<org.geolatte.geom.Geometry> difference(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set difference of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- difference between this and the other geometry
-
symDifference
public GeometryExpression<org.geolatte.geom.Geometry> symDifference(org.geolatte.geom.Geometry geometry) Returns a geometric object that represents the Point set symmetric difference of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- symmetric difference between this and the other geometry
-
symDifference
public GeometryExpression<org.geolatte.geom.Geometry> symDifference(Expression<? extends org.geolatte.geom.Geometry> geometry) Returns a geometric object that represents the Point set symmetric difference of this geometric object with anotherGeometry.- Parameters:
geometry
- other geometry- Returns:
- symmetric difference between this and the geometry
-
transform
-