Class MultiPolygon
- java.lang.Object
-
- com.github.filosganga.geogson.model.AbstractGeometry<MultiDimensionalPositions>
-
- com.github.filosganga.geogson.model.MultiPolygon
-
- All Implemented Interfaces:
Geometry<MultiDimensionalPositions>,Serializable
public class MultiPolygon extends AbstractGeometry<MultiDimensionalPositions>
AGeometrycomposed by a collection ofPolygon.GeoJson reference: @see http://geojson.org/geojson-spec.html#multipolygon.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.filosganga.geogson.model.Geometry
Geometry.Type
-
-
Constructor Summary
Constructors Constructor Description MultiPolygon(MultiDimensionalPositions positions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiPolygonof(Polygon... polygons)Creates a MultiPolygon from the givenPolygonsequence.static MultiPolygonof(Iterable<Polygon> polygons)Creates a MultiPolygon from the givenPolygonsequence.static MultiPolygonof(Stream<Polygon> polygons)Creates a MultiPolygon from the givenPolygonstream.List<Polygon>polygons()Returns the Iterable ofPolygoncomposing this MultiPolygon.Geometry.Typetype()Returns the Geometry type.
-
-
-
Constructor Detail
-
MultiPolygon
public MultiPolygon(MultiDimensionalPositions positions)
-
-
Method Detail
-
of
public static MultiPolygon of(Polygon... polygons)
Creates a MultiPolygon from the givenPolygonsequence.- Parameters:
polygons- ThePolygonsequence.- Returns:
- MultiPolygon
-
of
public static MultiPolygon of(Iterable<Polygon> polygons)
Creates a MultiPolygon from the givenPolygonsequence.- Parameters:
polygons- ThePolygonIterable.- Returns:
- MultiPolygon
-
of
public static MultiPolygon of(Stream<Polygon> polygons)
Creates a MultiPolygon from the givenPolygonstream.- Parameters:
polygons- ThePolygonStream.- Returns:
- MultiPolygon
-
type
public Geometry.Type type()
Description copied from interface:GeometryReturns the Geometry type.- Returns:
- Type
-
-