public class MultiPolygon<P extends Position> extends GeometryCollection<P,Polygon<P>> implements Polygonal<P>
GeometryCollection
of Polygon
s.geometries
Constructor and Description |
---|
MultiPolygon(CoordinateReferenceSystem<P> crs) |
MultiPolygon(Polygon<P>... polygons)
Constructs a
MultiPolygon from the specified array of Polygon s. |
Modifier and Type | Method and Description |
---|---|
Class<? extends Geometry> |
getComponentType()
Returns the
Class of which all constituent Geometry s are instances. |
GeometryType |
getGeometryType()
Returns the type of this
Geometry . |
accept, components, getDimension, getGeometryN, getNumGeometries, iterator
equals, forceToCrs, getCoordinateDimension, getCoordinateReferenceSystem, getCrs, getEnvelope, getNumPositions, getPositionClass, getPositionN, getPositions, getSRID, hashCode, isEmpty, nestPositionSequences, toString, writeReplace
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public MultiPolygon(Polygon<P>... polygons)
MultiPolygon
from the specified array of Polygon
s.polygons
- the element Polygon
s for the constructed MultiPolygon
public MultiPolygon(CoordinateReferenceSystem<P> crs)
public Class<? extends Geometry> getComponentType()
Complex
Class
of which all constituent Geometry
s are instances.getComponentType
in interface Complex<P extends Position,Polygon<P extends Position>>
getComponentType
in class GeometryCollection<P extends Position,Polygon<P extends Position>>
Class
of which all constituent Geometry
s are instances.public GeometryType getGeometryType()
Geometry
Geometry
.getGeometryType
in class GeometryCollection<P extends Position,Polygon<P extends Position>>
GeometryType
of this instance.Copyright © 2024 geolatte.org. All rights reserved.