Class Multipoint

  • All Implemented Interfaces:
    JsonSerializable

    public final class Multipoint
    extends Geometry
    Represents a set of locations as a single Geometry, defined by an ordered collection of Points and a SpatialReference.

    Multipoint is immutable. Instead of changing the properties of an existing Multipoint, create new Multipoint instances, or use MultipointBuilder.

    A Multipoint can be used as the Geometry of a Feature.

    Since:
    100.0.0
    See Also:
    Geometry, MultipointBuilder, Point
    • 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 multipoint
        spatialReference - the spatial reference
        Throws:
        NullPointerException - if points is null
        Since:
        100.0.0
    • Method Detail

      • getPoints

        public ImmutablePointCollection getPoints()
        Gets an ImmutablePointCollection containing Points that represent the set of locations in this Multipoint.

        Multipoint is immutable. Instead of changing the properties of an existing Multipoint, create new Multipoint instances, or use a MultipointBuilder instance.

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