com.ibm.geolib.geom
Interface LineString
-
-
Method Summary
Methods Modifier and Type Method and Description void
addVertex(Point point)
Add a vertex to the end of this line string.4double
getDynamicTimeWarpingDistance(LineString otherLineString, LengthUnit units)
Get the fretchet distance from the other line stringdouble
getFretchetDistance(LineString otherLineString, LengthUnit units)
Get the fretchet distance from the other line stringint
getNumberOfVertices()
java.util.List<Point>
getVertices()
boolean
isSelfIntersecting()
void
setVertices(java.util.List<Point> vertices)
Set the vertices of this line string to the given list of vertices.-
Methods inherited from interface com.ibm.geolib.geom.Geometry
clone, contains, equals, getArea, getArea, getBoundingBox, getContained, getContainers, getCoordinateReferenceSystem, getDistance, getHeading, getKNearestNeighbors, getNearestNeighbor, getReferencePoint, getSqrDistance, getWithinDistance, intersects, setHeading, setReferencePoint, toString, toString
-
Methods inherited from interface com.ibm.geolib.geom.Spatial
getGeometry
-
-
-
-
Method Detail
-
isSelfIntersecting
boolean isSelfIntersecting()
- Returns:
- whether the lineString self-intersect
-
getNumberOfVertices
int getNumberOfVertices()
- Returns:
- number of vertices in this line string
-
getVertices
java.util.List<Point> getVertices()
- Returns:
- list of vertices of this line string
-
setVertices
void setVertices(java.util.List<Point> vertices)
Set the vertices of this line string to the given list of vertices.- Parameters:
vertices
-
-
addVertex
void addVertex(Point point)
Add a vertex to the end of this line string.4- Parameters:
point
- to be added
-
getFretchetDistance
double getFretchetDistance(LineString otherLineString, LengthUnit units)
Get the fretchet distance from the other line string- Parameters:
otherLineString
-- Returns:
- the fretchet distance from otherLineString
-
getDynamicTimeWarpingDistance
double getDynamicTimeWarpingDistance(LineString otherLineString, LengthUnit units)
Get the fretchet distance from the other line string- Parameters:
otherLineString
-- Returns:
- the fretchet distance from otherLineString
-
-