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 void
addPoint(Point point)
Add a pointvoid
addPoints(List<Point> points)
Add pointsGeometry
copy()
Copy the geometryPoint
getPoint(int n)
Returns the Nth pointList<Point>
getPoints()
Get the pointsboolean
isSimple()
Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangencyint
numPoints()
Get the number of pointsvoid
setPoints(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:
copy
in 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:
isSimple
in classGeometryCollection<Point>
- Returns:
- true if simple
-
-