Package mil.nga.sf
Class MultiPoint
- java.lang.Object
-
- mil.nga.sf.Geometry
-
- mil.nga.sf.GeometryCollection<Point>
-
- mil.nga.sf.MultiPoint
-
- All Implemented Interfaces:
Serializable
public class MultiPoint extends GeometryCollection<Point>
A restricted form of GeometryCollection where each Geometry in the collection must be of type Point.- Author:
- osbornb
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultiPoint()ConstructorMultiPoint(boolean hasZ, boolean hasM)ConstructorMultiPoint(List<Point> points)ConstructorMultiPoint(MultiPoint multiPoint)Copy ConstructorMultiPoint(Point point)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPoint(Point point)Add a pointvoidaddPoints(List<Point> points)Add pointsGeometrycopy()Copy the geometryPointgetPoint(int n)Returns the Nth pointList<Point>getPoints()Get the pointsbooleanisSimple()Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangencyintnumPoints()Get the number of pointsvoidsetPoints(List<Point> points)Set the points-
Methods inherited from class mil.nga.sf.GeometryCollection
addGeometries, addGeometry, equals, getAsGeometryCollection, getAsMultiCurve, getAsMultiLineString, getAsMultiPoint, getAsMultiPolygon, getAsMultiSurface, getCollectionType, getGeometries, getGeometry, hashCode, isEmpty, isMultiCurve, isMultiLineString, isMultiPoint, isMultiPolygon, isMultiSurface, numGeometries, setGeometries
-
Methods inherited from class mil.nga.sf.Geometry
expandEnvelope, getCentroid, getDegreesCentroid, getDimension, getEnvelope, getGeometryType, hasM, hasZ, is3D, isMeasured, setHasM, setHasZ, updateZM
-
-
-
-
Constructor Detail
-
MultiPoint
public MultiPoint()
Constructor
-
MultiPoint
public MultiPoint(boolean hasZ, boolean hasM)Constructor- Parameters:
hasZ- has zhasM- has m
-
MultiPoint
public MultiPoint(Point point)
Constructor- Parameters:
point- point
-
MultiPoint
public MultiPoint(MultiPoint multiPoint)
Copy Constructor- Parameters:
multiPoint- multi point to copy
-
-
Method Detail
-
addPoint
public void addPoint(Point point)
Add a point- Parameters:
point- point
-
numPoints
public int numPoints()
Get the number of points- Returns:
- number of points
-
getPoint
public Point getPoint(int n)
Returns the Nth point- Parameters:
n- nth point to return- Returns:
- point
-
copy
public Geometry copy()
Copy the geometry- Overrides:
copyin classGeometryCollection<Point>- Returns:
- geometry copy
-
isSimple
public boolean isSimple()
Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangency- Overrides:
isSimplein classGeometryCollection<Point>- Returns:
- true if simple
-
-