Package com.esri.arcgisruntime.geometry
Class Multipoint
- java.lang.Object
-
- com.esri.arcgisruntime.geometry.Geometry
-
- com.esri.arcgisruntime.geometry.Multipoint
-
- All Implemented Interfaces:
JsonSerializable
public final class Multipoint extends Geometry
An ordered collection of points that can be managed as a single geometry.Multipoint
geometries represent an ordered collection of points. They can be used as the geometry of features and graphics, or as input or output for spatial operations. For features that consist of a very large number of points that share the same set of attribute values, multipoints may be more efficient to store and analyze in a geodatabase compared to using multiple point features.A
Multipoint
is composed of a single read-only collection ofPoint
. UseMultipointBuilder
to build a multipoint one point at a time or to modify an existingMultipoint
.- Since:
- 100.0.0
- See Also:
Geometry
,MultipointBuilder
,Point
-
-
Constructor Summary
Constructors Constructor Description Multipoint(Iterable<Point> points)
Creates a new multipoint from the given collection of points.Multipoint(Iterable<Point> points, SpatialReference spatialReference)
Creates a new multipoint from the given collection of points and using the given spatial reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutablePointCollection
getPoints()
Gets the read-only collection of points for the multipoint.-
Methods inherited from class com.esri.arcgisruntime.geometry.Geometry
equals, equals, fromJson, fromJson, getDimension, getExtent, getGeometryType, getSpatialReference, getUnknownJson, getUnsupportedJson, hasCurves, hashCode, hasM, hasZ, isEmpty, toJson
-
-
-
-
Constructor Detail
-
Multipoint
public Multipoint(Iterable<Point> points)
Creates a new multipoint from the given collection of points. This is a convenient alternative to using a MultipointBuilder.- Parameters:
points
- the points that will make up the multipoint- Throws:
NullPointerException
- if points is null- Since:
- 100.0.0
-
Multipoint
public Multipoint(Iterable<Point> points, SpatialReference spatialReference)
Creates a new multipoint from the given collection of points and using the given spatial reference. This is a convenient alternative to using a MultipointBuilder.- Parameters:
points
- the points that will make up the multipointspatialReference
- the spatial reference- Throws:
NullPointerException
- if points is null- Since:
- 100.0.0
-
-
Method Detail
-
getPoints
public ImmutablePointCollection getPoints()
Gets the read-only collection of points for the multipoint.Use
MultipointBuilder
to build a multipoint one point at a time or to modify the points that compose an existingMultipoint
.- Returns:
- the collection of points that make up this Multipoint.
- Since:
- 100.0.0
-
-