Class MultiPolygon

    • Constructor Detail

      • MultiPolygon

        public MultiPolygon()
        Constructor
      • MultiPolygon

        public MultiPolygon​(List<Polygon> polygons)
        Constructor
        Parameters:
        polygons - polygon list
        Since:
        3.0.0
      • MultiPolygon

        public MultiPolygon​(MultiPolygon multiPolygon)
        Constructor
        Parameters:
        multiPolygon - simple multi polygon
    • Method Detail

      • fromCoordinates

        public static MultiPolygon fromCoordinates​(List<List<List<Position>>> coordinates)
        Create a multi polygon from coordinates
        Parameters:
        coordinates - coordinates
        Returns:
        multi polygon
        Since:
        3.0.0
      • getGeometry

        public Geometry getGeometry()
        Get the simple geometry
        Specified by:
        getGeometry in class Geometry
        Returns:
        simple geometry
      • getCoordinates

        public List<List<List<Position>>> getCoordinates()
        Returns coordinates as a GeoJSON Position list
        Returns:
        the coordinates
      • setCoordinates

        public void setCoordinates​(List<List<List<Position>>> coordinates)
        Sets the coordinates from a GeoJSON Position list
        Parameters:
        coordinates - coordinates
        Since:
        3.0.0
      • getPolygons

        public List<Polygon> getPolygons()
        Get the polygons
        Returns:
        list of polygons
        Since:
        3.0.0
      • setPolygons

        public void setPolygons​(List<Polygon> polygons)
        Set the polygons
        Parameters:
        polygons - list of polygons
        Since:
        3.0.0
      • getMultiPolygon

        public MultiPolygon getMultiPolygon()
        Get the simple features multi polygon
        Returns:
        multi polygon
        Since:
        3.0.0
      • setMultiPolygon

        public void setMultiPolygon​(MultiPolygon multiPolygon)
        Set the simple features multi polygon
        Parameters:
        multiPolygon - multi polygon
        Since:
        3.0.0