Class GeoLinearRing


  • public final class GeoLinearRing
    extends Object
    Represents a linear ring that is part of a GeoPolygon.
    • Constructor Detail

      • GeoLinearRing

        public GeoLinearRing​(List<GeoPosition> coordinates)
        Constructs a new linear ring with the passed coordinates.
        Parameters:
        coordinates - The coordinates of the linear ring.
        Throws:
        NullPointerException - If coordinates is null.
        IllegalArgumentException - If coordinates has less than 4 elements or the first and last elements aren't equivalent.