Class 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 of Point. Use MultipointBuilder to build a multipoint one point at a time or to modify an existing Multipoint.

    Since:
    100.0.0
    See Also:
    Geometry, MultipointBuilder, Point
    • Constructor Detail

      • Multipoint

        public Multipoint​(java.lang.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:
        java.lang.NullPointerException - if points is null
        Since:
        100.0.0
      • Multipoint

        public Multipoint​(java.lang.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 multipoint
        spatialReference - the spatial reference
        Throws:
        java.lang.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 existing Multipoint.

        Returns:
        the collection of points that make up this Multipoint.
        Since:
        100.0.0