Class GeoPath

All Implemented Interfaces:
Serializable, Boundary<EarthCoordinate>, Named
Direct Known Subclasses:
Road

public class GeoPath extends CompositeBoundary<EarthCoordinate> implements Named
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:
  • Constructor Details

    • GeoPath

      public GeoPath()
    • GeoPath

      public GeoPath(String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Named
    • setName

      public void setName(String name)
    • addPoint

      public void addPoint(GeodeticCoordinate point)
      Compatibility method: adds a point to the first segment.
    • getPoints

      public List<GeodeticCoordinate> getPoints()
      Compatibility method: returns points of the first segment.
    • getStart

      public GeodeticCoordinate getStart()
      Compatibility method: returns the first point of the first segment.
    • getEnd

      public GeodeticCoordinate 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

      public Quantity<Length> getTotalLength()
      Calculates the total length of all segments.
    • toString

      public String toString()
      Overrides:
      toString in class Object