Package io.github.sebasbaumh.postgis
Interface LineBasedGeometry
-
- All Known Implementing Classes:
CircularString,CompoundCurve,Curve,CurvePolygon,LinearRing,LineString,Polygon,PolygonBase
public interface LineBasedGeometryInterface to mark line based geometries.- Author:
- Sebastian Baumhekel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PointgetEndPoint()Gets the end point.PointgetStartPoint()Gets the start point.booleanisClosed()Checks if this line is closed, so the last coordinate is the same as the first coordinate.doublelength()Gets the length of this line.
-
-
-
Method Detail
-
getStartPoint
@Nullable Point getStartPoint()
Gets the start point.- Returns:
Pointon success, else null
-
isClosed
boolean isClosed()
Checks if this line is closed, so the last coordinate is the same as the first coordinate.- Returns:
- true on success, else false
-
length
double length()
Gets the length of this line.- Returns:
- length
-
-