Class GeometryExpression<T extends org.geolatte.geom.Geometry>

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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Exports this geometric object to a specific Well-known Binary Representation of Geometry.
    Exports this geometric object to a specific Well-known Text Representation of Geometry.
    GeometryExpression<org.geolatte.geom.Geometry>
    Returns the closure of the combinatorial boundary of this geometric object
    GeometryExpression<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>
    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.
    Returns 1 (TRUE) if this geometric object is the empty Geometry.
    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.
    relate(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 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

      public GeometryExpression(Expression<T> mixin)
  • Method Details

    • dimension

      public NumberExpression<Integer> 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

      public StringExpression 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

      public NumberExpression<Integer> 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

      public GeometryExpression<org.geolatte.geom.Geometry> 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

      public StringExpression asText()
      Exports this geometric object to a specific Well-known Text Representation of Geometry.
      Returns:
      text representation
    • asBinary

      public SimpleExpression<byte[]> asBinary()
      Exports this geometric object to a specific Well-known Binary Representation of Geometry.
      Returns:
      binary representation
    • isEmpty

      public BooleanExpression 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

      public BooleanExpression 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

      public GeometryExpression<org.geolatte.geom.Geometry> boundary()
      Returns the closure of the combinatorial boundary of this geometric object
      Returns:
      boundary
    • eq

      public BooleanExpression eq(org.geolatte.geom.Geometry right)
      Overrides:
      eq in class SimpleExpression<T extends org.geolatte.geom.Geometry>
    • eq

      public BooleanExpression eq(Expression<? super T> right)
      Overrides:
      eq in class SimpleExpression<T extends org.geolatte.geom.Geometry>
    • disjoint

      public BooleanExpression disjoint(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object is “spatially disjoint” from anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if disjoint
    • disjoint

      public BooleanExpression disjoint(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object is “spatially disjoint” from anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if disjoint
    • intersects

      public BooleanExpression intersects(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object “spatially intersects” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if intersects
    • intersects

      public BooleanExpression intersects(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object “spatially intersects” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if intersects
    • touches

      public BooleanExpression touches(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object “spatially touches” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if touches
    • touches

      public BooleanExpression touches(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object “spatially touches” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if touches
    • crosses

      public BooleanExpression crosses(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object “spatially crosses’ anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      trye, if crosses
    • crosses

      public BooleanExpression crosses(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object “spatially crosses’ anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if crosses
    • within

      public BooleanExpression within(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if within
    • within

      public BooleanExpression within(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object is “spatially within” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if within
    • contains

      public BooleanExpression contains(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object “spatially contains” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if contains
    • contains

      public BooleanExpression contains(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object “spatially contains” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if contains
    • overlaps

      public BooleanExpression overlaps(org.geolatte.geom.Geometry geometry)
      Returns 1 (TRUE) if this geometric object “spatially overlaps” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if overlaps
    • overlaps

      public BooleanExpression overlaps(Expression<? extends org.geolatte.geom.Geometry> geometry)
      Returns 1 (TRUE) if this geometric object “spatially overlaps” anotherGeometry.
      Parameters:
      geometry - other geometry
      Returns:
      true, if overlaps
    • relate

      public BooleanExpression relate(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 geometry
      matrix - 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 geometry
      matrix - matrix
      Returns:
      true, if this geometry is spatially related to the other
    • distance

      public NumberExpression<Double> 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. 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

      public NumberExpression<Double> 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. 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

      public GeometryExpression<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. 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

      public GeometryExpression<org.geolatte.geom.Geometry> 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

      public 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.
      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

      public GeometryExpression<org.geolatte.geom.Geometry> transform(int srid)