Class Point
Represents a single point.
A Point
is topologically valid if and only if:
- The coordinate which defines it if any) is a valid coordinate
(i.e. does not have an
NaN
X- or Y-ordinate
Assembly: NetTopologySuite.dll
Syntax
[Serializable]
public class Point : Geometry, IComparable, IComparable<Geometry>, IPuntal
Constructors
|
Improve this Doc
View Source
Point(Coordinate)
Initializes a new instance of the Point class.
Declaration
public Point(Coordinate coordinate)
Parameters
Type |
Name |
Description |
Coordinate |
coordinate |
The coordinate used for create this Point.
|
|
Improve this Doc
View Source
Point(CoordinateSequence, GeometryFactory)
Constructs a Point
with the given coordinate.
Declaration
public Point(CoordinateSequence coordinates, GeometryFactory factory)
Parameters
Type |
Name |
Description |
CoordinateSequence |
coordinates |
Contains the single coordinate on which to base this Point ,
or null to create the empty point.
|
GeometryFactory |
factory |
|
|
Improve this Doc
View Source
Point(Double, Double)
Initializes a new instance of the Point class.
Declaration
public Point(double x, double y)
Parameters
Type |
Name |
Description |
Double |
x |
The x coordinate.
|
Double |
y |
The y coordinate.
|
|
Improve this Doc
View Source
Point(Double, Double, Double)
Initializes a new instance of the Point class.
Declaration
public Point(double x, double y, double z)
Parameters
Type |
Name |
Description |
Double |
x |
The x coordinate.
|
Double |
y |
The y coordinate.
|
Double |
z |
The z coordinate.
|
Fields
|
Improve this Doc
View Source
Empty
Represents an empty Point
.
Declaration
public static readonly Point Empty
Field Value
Properties
|
Improve this Doc
View Source
Boundary
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
Overrides
|
Improve this Doc
View Source
BoundaryDimension
Declaration
public override Dimension BoundaryDimension { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Coordinate
Declaration
public override Coordinate Coordinate { get; }
Property Value
Overrides
|
Improve this Doc
View Source
Coordinates
Declaration
public override Coordinate[] Coordinates { get; }
Property Value
Overrides
|
Improve this Doc
View Source
CoordinateSequence
Declaration
public CoordinateSequence CoordinateSequence { get; }
Property Value
|
Improve this Doc
View Source
Dimension
Declaration
public override Dimension Dimension { get; }
Property Value
Overrides
|
Improve this Doc
View Source
GeometryType
Returns the name of this object's interface.
Declaration
public override string GeometryType { get; }
Property Value
Type |
Description |
String |
"Point"
|
Overrides
|
Improve this Doc
View Source
IsEmpty
Declaration
public override bool IsEmpty { get; }
Property Value
Overrides
|
Improve this Doc
View Source
M
Declaration
public double M { get; set; }
Property Value
|
Improve this Doc
View Source
NumPoints
Declaration
public override int NumPoints { get; }
Property Value
Overrides
|
Improve this Doc
View Source
OgcGeometryType
Gets the OGC geometry type
Declaration
public override OgcGeometryType OgcGeometryType { get; }
Property Value
Overrides
|
Improve this Doc
View Source
SortIndex
Gets a value to sort the geometry
Declaration
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
Overrides
|
Improve this Doc
View Source
X
Declaration
public double X { get; set; }
Property Value
|
Improve this Doc
View Source
Y
Declaration
public double Y { get; set; }
Property Value
|
Improve this Doc
View Source
Z
Declaration
public double Z { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Apply(ICoordinateFilter)
Declaration
public override void Apply(ICoordinateFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(ICoordinateSequenceFilter)
Declaration
public override void Apply(ICoordinateSequenceFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(IEntireCoordinateSequenceFilter)
Declaration
public override void Apply(IEntireCoordinateSequenceFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(IGeometryComponentFilter)
Declaration
public override void Apply(IGeometryComponentFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
Apply(IGeometryFilter)
Declaration
public override void Apply(IGeometryFilter filter)
Parameters
Overrides
|
Improve this Doc
View Source
CompareToSameClass(Object)
Declaration
protected override int CompareToSameClass(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
CompareToSameClass(Object, IComparer<CoordinateSequence>)
Declaration
protected override int CompareToSameClass(object other, IComparer<CoordinateSequence> comparer)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
ComputeEnvelopeInternal()
Declaration
protected override Envelope ComputeEnvelopeInternal()
Returns
Overrides
|
Improve this Doc
View Source
CopyInternal()
Declaration
protected override Geometry CopyInternal()
Returns
Overrides
|
Improve this Doc
View Source
EqualsExact(Geometry, Double)
Declaration
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetOrdinates(Ordinate)
Declaration
public override double[] GetOrdinates(Ordinate ordinate)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Normalize()
Declaration
public override void Normalize()
Overrides
|
Improve this Doc
View Source
Reverse()
Declaration
[Obsolete("Call Geometry.Reverse()")]
public override Geometry Reverse()
Returns
Overrides
|
Improve this Doc
View Source
ReverseInternal()
The actual implementation of the Reverse() function for POINT
s.
Declaration
protected override Geometry ReverseInternal()
Returns
Type |
Description |
Geometry |
A reversed geometry
|
Overrides
Implements