Package org.geolatte.geom
Class MultiPoint<P extends Position>
- java.lang.Object
-
- org.geolatte.geom.Geometry<P>
-
- org.geolatte.geom.AbstractGeometryCollection<P,Point<P>>
-
- org.geolatte.geom.MultiPoint<P>
-
- All Implemented Interfaces:
Serializable,Iterable<Point<P>>,Complex<P,Point<P>>
public class MultiPoint<P extends Position> extends AbstractGeometryCollection<P,Point<P>>
AGeometryCollectionofPoints.- Author:
- Karel Maesen, Geovise BVBA, 2011
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.geolatte.geom.AbstractGeometryCollection
geometries
-
-
Constructor Summary
Constructors Constructor Description MultiPoint(CoordinateReferenceSystem<P> crs)MultiPoint(Point<P>... points)Constructs aMultiPointfrom the specifiedPoints
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Q extends Position>
MultiPoint<Q>as(Class<Q> castToType)Class<? extends Geometry>getComponentType()Returns theClassof which all constituentGeometrys are instances.intgetDimension()Returns the topological dimension of this instance.GeometryTypegetGeometryType()Returns the type of thisGeometry.-
Methods inherited from class org.geolatte.geom.AbstractGeometryCollection
accept, components, 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
-
MultiPoint
@SafeVarargs public MultiPoint(Point<P>... points)
Constructs aMultiPointfrom the specifiedPoints- Parameters:
points- the elementPoints for the constructedMultiPoint
-
MultiPoint
public MultiPoint(CoordinateReferenceSystem<P> crs)
-
-
Method Detail
-
getDimension
public int getDimension()
Description copied from class:GeometryReturns the topological dimension of this instance. In non-homogenous collections, this will return the largest topological dimension of the containedGeometries.- Overrides:
getDimensionin classAbstractGeometryCollection<P extends Position,Point<P extends Position>>- Returns:
- the topological dimension of this instance
-
getGeometryType
public GeometryType getGeometryType()
Description copied from class:GeometryReturns the type of thisGeometry.- Overrides:
getGeometryTypein classAbstractGeometryCollection<P extends Position,Point<P extends Position>>- Returns:
- the
GeometryTypeof this instance.
-
getComponentType
public Class<? extends Geometry> getComponentType()
Description copied from interface:ComplexReturns theClassof which all constituentGeometrys are instances.- Specified by:
getComponentTypein interfaceComplex<P extends Position,Point<P extends Position>>- Overrides:
getComponentTypein classAbstractGeometryCollection<P extends Position,Point<P extends Position>>- Returns:
- the
Classof which all constituentGeometrys are instances.
-
-