public final class JTSGeometryExpressions extends Object
Modifier and Type | Method and Description |
---|---|
static StringExpression |
asEWKT(JTSGeometryExpression<?> expr)
Return a specified ST_Geometry value from Extended Well-Known Text representation (EWKT).
|
static <T extends com.vividsolutions.jts.geom.Geometry> |
asJTSGeometry(Expression<T> expr)
Create a new JTSGeometryExpression
|
static <T extends com.vividsolutions.jts.geom.Geometry> |
asJTSGeometry(T value)
Create a new JTSGeometryExpression
|
static JTSGeometryExpression<?> |
collect(Expression<? extends com.vividsolutions.jts.geom.Geometry> expr1,
Expression<? extends com.vividsolutions.jts.geom.Geometry> expr2)
Return a specified ST_Geometry value from a collection of other geometries.
|
static JTSGeometryExpression<?> |
collect(Expression<? extends com.vividsolutions.jts.geom.GeometryCollection> collection)
Return a specified ST_Geometry value from a collection of other geometries.
|
static BooleanExpression |
dwithin(Expression<? extends com.vividsolutions.jts.geom.Geometry> expr1,
Expression<? extends com.vividsolutions.jts.geom.Geometry> expr2,
double distance)
Returns true if the geometries are within the specified distance of one another.
|
static BooleanExpression |
dwithin(Expression<? extends com.vividsolutions.jts.geom.Geometry> expr1,
Expression<? extends com.vividsolutions.jts.geom.Geometry> expr2,
Expression<Double> distance)
Returns true if the geometries are within the specified distance of one another.
|
static JTSGeometryExpression<?> |
extent(Expression<? extends com.vividsolutions.jts.geom.GeometryCollection> collection)
Returns the bounding box that bounds rows of geometries.
|
static JTSGeometryExpression<?> |
fromText(Expression<String> text)
Return a specified ST_Geometry value from Well-Known Text representation (WKT).
|
static JTSGeometryExpression<?> |
fromText(String text)
Return a specified ST_Geometry value from Well-Known Text representation (WKT).
|
static <T extends com.vividsolutions.jts.geom.Geometry> |
geometryOperation(Class<? extends T> type,
Operator op,
Expression<?>... args)
Create a new Geometry operation expression
|
static JTSGeometryExpression<com.vividsolutions.jts.geom.Geometry> |
geometryOperation(Operator op,
Expression<?>... args)
Create a new Geometry operation expression
|
static JTSLineStringExpression<com.vividsolutions.jts.geom.LineString> |
lineStringOperation(Operator op,
Expression<?>... args)
Create a new LineString operation expression
|
static JTSPointExpression<com.vividsolutions.jts.geom.Point> |
pointOperation(Operator op,
Expression<?>... args)
Create a new Point operation expression
|
static JTSPolygonExpression<com.vividsolutions.jts.geom.Polygon> |
polygonOperation(Operator op,
Expression<?>... args)
Create a new Polygon operation expression
|
static <T extends com.vividsolutions.jts.geom.Geometry> |
setSRID(Expression<T> expr,
int srid)
Sets the SRID on a geometry to a particular integer value.
|
static <T extends com.vividsolutions.jts.geom.Geometry> |
translate(Expression<T> expr,
float deltax,
float deltay)
Translates the geometry to a new location using the numeric parameters as offsets.
|
static <T extends com.vividsolutions.jts.geom.Geometry> |
translate(Expression<T> expr,
float deltax,
float deltay,
float deltaz)
Translates the geometry to a new location using the numeric parameters as offsets.
|
static NumberExpression<Double> |
xmax(JTSGeometryExpression<?> expr)
Returns X maxima of a bounding box 2d or 3d or a geometry.
|
static NumberExpression<Double> |
xmin(JTSGeometryExpression<?> expr)
Returns X minima of a bounding box 2d or 3d or a geometry.
|
static NumberExpression<Double> |
ymax(JTSGeometryExpression<?> expr)
Returns Y maxima of a bounding box 2d or 3d or a geometry.
|
static NumberExpression<Double> |
ymin(JTSGeometryExpression<?> expr)
Returns Y minima of a bounding box 2d or 3d or a geometry.
|
public static StringExpression asEWKT(JTSGeometryExpression<?> expr)
expr
- geometrypublic static JTSGeometryExpression<?> fromText(String text)
text
- WKT formpublic static JTSGeometryExpression<?> fromText(Expression<String> text)
text
- WKT formpublic static <T extends com.vividsolutions.jts.geom.Geometry> JTSGeometryExpression<T> setSRID(Expression<T> expr, int srid)
T
- expr
- geometrysrid
- SRIDpublic static NumberExpression<Double> xmin(JTSGeometryExpression<?> expr)
expr
- geometrypublic static NumberExpression<Double> xmax(JTSGeometryExpression<?> expr)
expr
- geometrypublic static NumberExpression<Double> ymin(JTSGeometryExpression<?> expr)
expr
- geometrypublic static NumberExpression<Double> ymax(JTSGeometryExpression<?> expr)
expr
- geometrypublic static BooleanExpression dwithin(Expression<? extends com.vividsolutions.jts.geom.Geometry> expr1, Expression<? extends com.vividsolutions.jts.geom.Geometry> expr2, Expression<Double> distance)
expr1
- geometryexpr2
- other geometrydistance
- distancepublic static BooleanExpression dwithin(Expression<? extends com.vividsolutions.jts.geom.Geometry> expr1, Expression<? extends com.vividsolutions.jts.geom.Geometry> expr2, double distance)
expr1
- geometryexpr2
- other geometrydistance
- distancepublic static JTSGeometryExpression<?> extent(Expression<? extends com.vividsolutions.jts.geom.GeometryCollection> collection)
collection
- geometry collectionpublic static JTSGeometryExpression<?> collect(Expression<? extends com.vividsolutions.jts.geom.GeometryCollection> collection)
collection
- geometry collectionpublic static JTSGeometryExpression<?> collect(Expression<? extends com.vividsolutions.jts.geom.Geometry> expr1, Expression<? extends com.vividsolutions.jts.geom.Geometry> expr2)
expr1
- geometryexpr2
- other geometrypublic static <T extends com.vividsolutions.jts.geom.Geometry> JTSGeometryExpression<T> translate(Expression<T> expr, float deltax, float deltay)
T
- expr
- geometrydeltax
- x offsetdeltay
- y offsetpublic static <T extends com.vividsolutions.jts.geom.Geometry> JTSGeometryExpression<T> translate(Expression<T> expr, float deltax, float deltay, float deltaz)
T
- expr
- geometrydeltax
- x offsetdeltay
- y offsetdeltaz
- z offsetpublic static JTSGeometryExpression<com.vividsolutions.jts.geom.Geometry> geometryOperation(Operator op, Expression<?>... args)
op
- operatorargs
- argumentspublic static <T extends com.vividsolutions.jts.geom.Geometry> JTSGeometryExpression<T> geometryOperation(Class<? extends T> type, Operator op, Expression<?>... args)
op
- operatorargs
- argumentspublic static JTSLineStringExpression<com.vividsolutions.jts.geom.LineString> lineStringOperation(Operator op, Expression<?>... args)
op
- operatorargs
- argumentspublic static JTSPointExpression<com.vividsolutions.jts.geom.Point> pointOperation(Operator op, Expression<?>... args)
op
- operatorargs
- argumentspublic static JTSPolygonExpression<com.vividsolutions.jts.geom.Polygon> polygonOperation(Operator op, Expression<?>... args)
op
- operatorargs
- argumentspublic static <T extends com.vividsolutions.jts.geom.Geometry> JTSGeometryExpression<T> asJTSGeometry(Expression<T> expr)
expr
- Expression of type Geometrypublic static <T extends com.vividsolutions.jts.geom.Geometry> JTSGeometryExpression<T> asJTSGeometry(T value)
value
- GeometryCopyright © 2007–2016 Querydsl. All rights reserved.