Class GeoPolygon
java.lang.Object
org.episteme.core.mathematics.geometry.boundaries.CompositeBoundary<EarthCoordinate>
org.episteme.social.geography.GeoPolygon
- All Implemented Interfaces:
Serializable, Boundary<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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInner class representing a simple polygon (1 exterior + N interiors). -
Constructor Summary
ConstructorsConstructorDescriptionGeoPolygon(List<GeodeticCoordinate> exterior) Compatibility constructor for a single simple polygon. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterior(List<GeodeticCoordinate> points) Adds an interior ring (hole) to the first exclave.Returns the exterior ring of the first exclave.voidsetExterior(List<GeodeticCoordinate> points) Sets the main exterior ring of the first exclave.Methods inherited from class CompositeBoundary
addExclusion, addInclusion, contains, convexHull, getBoundaryMeasure, getBoundingBox, getCentroid, getDimension, getExclusions, getInclusions, getMeasure, intersection, intersects, isEmpty, scale, translate, union
-
Constructor Details
-
GeoPolygon
public GeoPolygon() -
GeoPolygon
Compatibility constructor for a single simple polygon.
-
-
Method Details
-
setExterior
Sets the main exterior ring of the first exclave. -
getExterior
Returns the exterior ring of the first exclave. -
addInterior
Adds an interior ring (hole) to the first exclave.
-