Class GeoPath
java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.CompositeBoundary<EarthCoordinate>
org.episteme.social.geography.GeoPath
- All Implemented Interfaces:
Serializable, Boundary<EarthCoordinate>, Named
- Direct Known Subclasses:
Road
Represents a geographical path, which can consist of multiple disjoint segments
(MultiLineString).
Refactored to leverage
CompositeBoundary.- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class representing a single continuous path segment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoint(GeodeticCoordinate point) Compatibility method: adds a point to the first segment.getEnd()Compatibility method: returns the last point of the first segment.getName()Compatibility method: returns points of the first segment.getStart()Compatibility method: returns the first point of the first segment.Calculates the total length of all segments.voidintsize()Compatibility method: returns the number of points in the first segment.toString()Methods inherited from class CompositeBoundary
addExclusion, addInclusion, contains, convexHull, getBoundaryMeasure, getBoundingBox, getCentroid, getDimension, getExclusions, getInclusions, getMeasure, intersection, intersects, isEmpty, scale, translate, union
-
Constructor Details
-
GeoPath
public GeoPath() -
GeoPath
-
-
Method Details
-
getName
-
setName
-
addPoint
Compatibility method: adds a point to the first segment. -
getPoints
Compatibility method: returns points of the first segment. -
getStart
Compatibility method: returns the first point of the first segment. -
getEnd
Compatibility method: returns the last point of the first segment. -
size
public int size()Compatibility method: returns the number of points in the first segment. -
getTotalLength
-
toString
-