Package javax.jdo.query.geospatial
Interface LineStringExpression<T>
- All Superinterfaces:
ComparableExpression<T>
,Expression<T>
,GeometryExpression<T>
Representation of a LineString expression.
Note that this is not part of the JDO spec, but a vendor extension to allow JDOQLTyped handling for geometry types.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the last point of the CurvegetPointN
(NumericExpression position) Returns the nth Point in the LineString.Returns the first point of the CurveisClosed()
Returns TRUE if Curve/MultiCurve is closed, i.e., if StartPoint(Curve) = EndPoint(Curve).isRing()
Returns TRUE if Curve/MultiCurve is closed and simple.Methods inherited from interface javax.jdo.query.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
Methods inherited from interface javax.jdo.query.Expression
as, cast, count, countDistinct, eq, eq, instanceOf, ne, ne
Methods inherited from interface javax.jdo.query.geospatial.GeometryExpression
buffer, contains, convexHull, crosses, difference, disjoint, distance, equals, getArea, getBoundary, getCentroid, getDimension, getEnvelope, getGeometryN, getGeometryType, getLength, getNumGeometries, getNumPoints, getPointOnSurface, getSRID, intersection, intersects, isEmpty, isSimple, overlaps, relate, symDifference, toBinary, toText, touches, union, within
-
Method Details
-
isRing
BooleanExpression isRing()Returns TRUE if Curve/MultiCurve is closed and simple.- Returns:
- Whether it is closed and simple
-
getStartPoint
GeometryExpression getStartPoint()Returns the first point of the Curve- Returns:
- The first point
-
getPointN
Returns the nth Point in the LineString.- Parameters:
position
- The "n"- Returns:
- The nth Point of the LineString
-
getEndPoint
GeometryExpression getEndPoint()Returns the last point of the Curve- Returns:
- The last point
-
isClosed
BooleanExpression isClosed()Returns TRUE if Curve/MultiCurve is closed, i.e., if StartPoint(Curve) = EndPoint(Curve).- Returns:
- Whether it is closed
-