Class PolygonCoordinates


  • public final class PolygonCoordinates
    extends 
    Coordinates for a GeoJSON Polygon.
    Since:
    3.1
    • Constructor Detail

      • PolygonCoordinates

        public PolygonCoordinates​(<Position> exterior,
                                  <Position>... holes)
        Construct an instance.
        Parameters:
        exterior - the exterior ring of the polygon
        holes - optional interior rings of the polygon
    • Method Detail

      • getExterior

        public <Position> getExterior()
        Gets the exterior of the polygon.
        Returns:
        the exterior of the polygon
      • getHoles

        public <<Position>> getHoles()
        Gets the holes in the polygon.
        Returns:
        the holes in the polygon, which will not be null but may be empty
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • hashCode

        public int hashCode()
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class