Class GeoPolygon

All Implemented Interfaces:
Serializable, Boundary<EarthCoordinate>

public class GeoPolygon extends CompositeBoundary<EarthCoordinate>
A geographical polygon supporting multiple disjoint regions (exclaves) and holes (enclaves). Refactored to leverage CompositeBoundary.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • GeoPolygon

      public GeoPolygon()
    • GeoPolygon

      public GeoPolygon(List<GeodeticCoordinate> exterior)
      Compatibility constructor for a single simple polygon.
  • Method Details

    • setExterior

      public void setExterior(List<GeodeticCoordinate> points)
      Sets the main exterior ring of the first exclave.
    • getExterior

      public List<GeodeticCoordinate> getExterior()
      Returns the exterior ring of the first exclave.
    • addInterior

      public void addInterior(List<GeodeticCoordinate> points)
      Adds an interior ring (hole) to the first exclave.