Package org.geolatte.geom
Class MultiPolygon<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.Geometry<P>
-
- org.geolatte.geom.AbstractGeometryCollection<P,Polygon<P>>
-
- org.geolatte.geom.MultiPolygon<P>
-
- All Implemented Interfaces:
Serializable,Iterable<Polygon<P>>,Complex<P,Polygon<P>>,Polygonal<P>
public class MultiPolygon<P extends Position> extends AbstractGeometryCollection<P,Polygon<P>> implements Polygonal<P>
AGeometryCollectionofPolygons.- Author:
- Karel Maesen, Geovise BVBA creation-date: 4/20/11
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.geolatte.geom.AbstractGeometryCollection
geometries
-
-
Constructor Summary
Constructors Constructor Description MultiPolygon(CoordinateReferenceSystem<P> crs)MultiPolygon(Polygon<P>... polygons)Constructs aMultiPolygonfrom the specified array ofPolygons.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Q extends Position>
MultiPolygon<Q>as(Class<Q> castToType)Class<? extends Geometry>getComponentType()Returns theClassof which all constituentGeometrys are instances.GeometryTypegetGeometryType()Returns the type of thisGeometry.-
Methods inherited from class org.geolatte.geom.AbstractGeometryCollection
accept, components, getDimension, getGeometryN, getNumGeometries, iterator
-
Methods inherited from class org.geolatte.geom.Geometry
checkCast, equals, forceToCrs, getCoordinateDimension, getCoordinateReferenceSystem, getCrs, getEnvelope, getNumPositions, getPositionClass, getPositionN, getPositions, getSRID, hashCode, isEmpty, nestPositionSequences, toString, writeReplace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MultiPolygon
public MultiPolygon(Polygon<P>... polygons)
Constructs aMultiPolygonfrom the specified array ofPolygons.- Parameters:
polygons- the elementPolygons for the constructedMultiPolygon
-
MultiPolygon
public MultiPolygon(CoordinateReferenceSystem<P> crs)
-
-
Method Detail
-
getComponentType
public Class<? extends Geometry> getComponentType()
Description copied from interface:ComplexReturns theClassof which all constituentGeometrys are instances.- Specified by:
getComponentTypein interfaceComplex<P extends Position,Polygon<P extends Position>>- Overrides:
getComponentTypein classAbstractGeometryCollection<P extends Position,Polygon<P extends Position>>- Returns:
- the
Classof which all constituentGeometrys are instances.
-
getGeometryType
public GeometryType getGeometryType()
Description copied from class:GeometryReturns the type of thisGeometry.- Overrides:
getGeometryTypein classAbstractGeometryCollection<P extends Position,Polygon<P extends Position>>- Returns:
- the
GeometryTypeof this instance.
-
-