Class MultiPoint
- Namespace
- NetTopologySuite.Geometries
- Assembly
- NetTopologySuite.dll
Models a collection of Point
s.
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
Point
s for thisMultiPoint
, ornull
or an empty array to create the empty point. Elements may be emptyPoint
s, but notnull
s.
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
Point
s for thisMultiPoint
, ornull
or an empty array to create the empty point. Elements may be emptyPoint
s, but notnull
s.factory
GeometryFactory
Fields
Empty
Represents an empty MultiPoint
.
public static readonly MultiPoint Empty
Field Value
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
BoundaryDimension
public override Dimension BoundaryDimension { get; }
Property Value
Dimension
public override Dimension Dimension { get; }
Property Value
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
OgcGeometryType
Gets the OGC geometry type
public override OgcGeometryType OgcGeometryType { get; }
Property Value
SortIndex
Gets a value to sort the geometry
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
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
EqualsExact(Geometry, double)
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
Returns
GetCoordinate(int)
Returns the Coordinate
at the given position.
protected Coordinate GetCoordinate(int n)
Parameters
n
intThe index of the
Coordinate
to retrieve, beginning at 0.
Returns
- Coordinate
The
n
thCoordinate
.
ReverseInternal()
protected override Geometry ReverseInternal()