Class MultiPoint
Models a collection of Point
s.
Implements
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class MultiPoint : GeometryCollection, IComparable, IComparable<Geometry>, IReadOnlyList<Geometry>, IReadOnlyCollection<Geometry>, IEnumerable<Geometry>, IEnumerable, IPuntal
Constructors
| Edit this page View SourceMultiPoint(Point[])
Constructs a MultiPoint
.
Declaration
public MultiPoint(Point[] points)
Parameters
Type | Name | Description |
---|---|---|
Point[] | points | The |
Remarks
For create this Geometry is used a standard GeometryFactory
with PrecisionModel ==
Floating.
MultiPoint(Point[], GeometryFactory)
Constructs a MultiPoint
.
Declaration
public MultiPoint(Point[] points, GeometryFactory factory)
Parameters
Type | Name | Description |
---|---|---|
Point[] | points | The |
GeometryFactory | factory |
Fields
| Edit this page View SourceEmpty
Represents an empty MultiPoint
.
Declaration
public static readonly MultiPoint Empty
Field Value
Type | Description |
---|---|
MultiPoint |
Properties
| Edit this page View SourceBoundary
Gets the boundary of this geometry. Zero-dimensional geometries have no boundary by definition, so an empty GeometryCollection is returned.
Declaration
public override Geometry Boundary { get; }
Property Value
Type | Description |
---|---|
Geometry |
Overrides
| Edit this page View SourceBoundaryDimension
Declaration
public override Dimension BoundaryDimension { get; }
Property Value
Type | Description |
---|---|
Dimension |
Overrides
| Edit this page View SourceDimension
Declaration
public override Dimension Dimension { get; }
Property Value
Type | Description |
---|---|
Dimension |
Overrides
| Edit this page View SourceGeometryType
Returns the name of this object's interface.
Declaration
public override string GeometryType { get; }
Property Value
Type | Description |
---|---|
string | "MultiPoint" |
Overrides
| Edit this page View SourceIsValid
Tests whether this Geometry
is topologically
valid, according to the OGC SFS specification.
Declaration
public override bool IsValid { get; }
Property Value
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceOgcGeometryType
Gets the OGC geometry type
Declaration
public override OgcGeometryType OgcGeometryType { get; }
Property Value
Type | Description |
---|---|
OgcGeometryType |
Overrides
| Edit this page View SourceSortIndex
Gets a value to sort the geometry
Declaration
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
Type | Description |
---|---|
Geometry.SortIndexValue |
Overrides
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
| Edit this page View SourceCopyInternal()
An internal method to copy subclass-specific geometry data.
Declaration
protected override Geometry CopyInternal()
Returns
Type | Description |
---|---|
Geometry | A copy of the target geometry object. |
Overrides
| Edit this page View SourceEqualsExact(Geometry, double)
Declaration
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
Type | Name | Description |
---|---|---|
Geometry | other | |
double | tolerance |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetCoordinate(int)
Returns the Coordinate
at the given position.
Declaration
protected Coordinate GetCoordinate(int n)
Parameters
Type | Name | Description |
---|---|---|
int | n | The index of the |
Returns
Type | Description |
---|---|
Coordinate | The |
HasDimension(Dimension)
Tests whether an atomic geometry or any element of a collection
has the specified dimension.
In particular, this can be used with mixed-dimension GeometryCollections
to test if they contain an element of the specified dimension.
Declaration
public override bool HasDimension(Dimension dim)
Parameters
Type | Name | Description |
---|---|---|
Dimension | dim | The dimension to test |
Returns
Type | Description |
---|---|
bool |
|
Overrides
See Also
| Edit this page View SourceReverseInternal()
Declaration
protected override Geometry ReverseInternal()
Returns
Type | Description |
---|---|
Geometry |