Table of Contents

Class MultiPoint

Namespace
NetTopologySuite.Geometries
Assembly
NetTopologySuite.dll

Models a collection of Points.

public class MultiPoint : GeometryCollection, IComparable, IComparable<Geometry>, IEnumerable<Geometry>, IEnumerable, IPuntal
Inheritance
MultiPoint
Implements
Inherited Members

Constructors

MultiPoint(Point[])

Constructs a MultiPoint.

public MultiPoint(Point[] points)

Parameters

points Point[]

The Points for this MultiPoint , or null or an empty array to create the empty point. Elements may be empty Points, but not nulls.

Remarks

For create this Geometry is used a standard GeometryFactory with PrecisionModel == Floating.

MultiPoint(Point[], GeometryFactory)

Constructs a MultiPoint.

public MultiPoint(Point[] points, GeometryFactory factory)

Parameters

points Point[]

The Points for this MultiPoint , or null or an empty array to create the empty point. Elements may be empty Points, but not nulls.

factory GeometryFactory

Fields

Empty

Represents an empty MultiPoint.

public static readonly MultiPoint Empty

Field Value

MultiPoint

Properties

Boundary

Gets the boundary of this geometry. Zero-dimensional geometries have no boundary by definition, so an empty GeometryCollection is returned.

public override Geometry Boundary { get; }

Property Value

Geometry

BoundaryDimension

public override Dimension BoundaryDimension { get; }

Property Value

Dimension

Dimension

public override Dimension Dimension { get; }

Property Value

Dimension

GeometryType

Returns the name of this object's interface.

public override string GeometryType { get; }

Property Value

string

"MultiPoint"

IsValid

public override bool IsValid { get; }

Property Value

bool

OgcGeometryType

Gets the OGC geometry type

public override OgcGeometryType OgcGeometryType { get; }

Property Value

OgcGeometryType

SortIndex

Gets a value to sort the geometry

protected override Geometry.SortIndexValue SortIndex { get; }

Property Value

Geometry.SortIndexValue

Remarks

NOTE:
For JTS v1.17 this property's getter has been renamed to getTypeCode(). In order not to break binary compatibility we did not follow.

Methods

CopyInternal()

protected override Geometry CopyInternal()

Returns

Geometry

EqualsExact(Geometry, double)

public override bool EqualsExact(Geometry other, double tolerance)

Parameters

other Geometry
tolerance double

Returns

bool

GetCoordinate(int)

Returns the Coordinate at the given position.

protected Coordinate GetCoordinate(int n)

Parameters

n int

The index of the Coordinate to retrieve, beginning at 0.

Returns

Coordinate

The nth Coordinate.

ReverseInternal()

protected override Geometry ReverseInternal()

Returns

Geometry