Search Results for

    Show / Hide Table of Contents

    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
    Inheritance
    object
    Geometry
    Point
    Implements
    IComparable
    IComparable<Geometry>
    IPuntal
    Inherited Members
    Geometry.TypeNamePoint
    Geometry.TypeNameMultiPoint
    Geometry.TypeNameLineString
    Geometry.TypeNameLinearRing
    Geometry.TypeNameMultiLineString
    Geometry.TypeNamePolygon
    Geometry.TypeNameMultiPolygon
    Geometry.TypeNameGeometryCollection
    Geometry.Factory
    Geometry.UserData
    Geometry.SRID
    Geometry.HasNonEmptyElements(Geometry[])
    Geometry.HasNullElements(object[])
    Geometry.HasNullElements<T>(IEnumerable<T>)
    Geometry.PrecisionModel
    Geometry.NumGeometries
    Geometry.GetGeometryN(int)
    Geometry.IsSimple
    Geometry.IsValid
    Geometry.Distance(Geometry)
    Geometry.IsWithinDistance(Geometry, double)
    Geometry.Area
    Geometry.Length
    Geometry.Centroid
    Geometry.InteriorPoint
    Geometry.PointOnSurface
    Geometry.HasDimension(Dimension)
    Geometry.Envelope
    Geometry.EnvelopeInternal
    Geometry.GeometryChanged()
    Geometry.GeometryChangedAction()
    Geometry.Disjoint(Geometry)
    Geometry.Touches(Geometry)
    Geometry.Intersects(Geometry)
    Geometry.Crosses(Geometry)
    Geometry.Within(Geometry)
    Geometry.Contains(Geometry)
    Geometry.Overlaps(Geometry)
    Geometry.Covers(Geometry)
    Geometry.CoveredBy(Geometry)
    Geometry.Relate(Geometry, string)
    Geometry.Relate(Geometry)
    Geometry.Equals(Geometry)
    Geometry.EqualsTopologically(Geometry)
    Geometry.Equals(object)
    Geometry.GetHashCode()
    Geometry.ToString()
    Geometry.ToText()
    Geometry.AsText()
    Geometry.ToBinary()
    Geometry.AsBinary()
    Geometry.ToGMLFeature()
    Geometry.Buffer(double)
    Geometry.Buffer(double, EndCapStyle)
    Geometry.Buffer(double, int)
    Geometry.Buffer(double, int, EndCapStyle)
    Geometry.Buffer(double, BufferParameters)
    Geometry.ConvexHull()
    Geometry.Intersection(Geometry)
    Geometry.Union(Geometry)
    Geometry.Difference(Geometry)
    Geometry.SymmetricDifference(Geometry)
    Geometry.Union()
    Geometry.EqualsExact(Geometry)
    Geometry.EqualsNormalized(Geometry)
    Geometry.Copy()
    Geometry.Normalized()
    Geometry.CompareTo(object)
    Geometry.CompareTo(Geometry)
    Geometry.CompareTo(object, IComparer<CoordinateSequence>)
    Geometry.IsEquivalentClass(Geometry)
    Geometry.CheckNotGeometryCollection(Geometry)
    Geometry.IsGeometryCollection
    Geometry.Compare(List<Geometry>, List<Geometry>)
    Geometry.Equal(Coordinate, Coordinate, double)
    Geometry.IsRectangle
    Geometry.DefaultFactory
    Geometry.CreateArray(int, double)
    Geometry.CreateArray(CoordinateSequence, Ordinate)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    [Serializable]
    public class Point : Geometry, IComparable, IComparable<Geometry>, IPuntal

    Constructors

    | Edit this page 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.

    Remarks

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

    | Edit this page 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
    | Edit this page 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.

    Remarks

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

    | Edit this page 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.

    Remarks

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

    Fields

    | Edit this page View Source

    Empty

    Represents an empty Point.

    Declaration
    public static readonly Point Empty
    Field Value
    Type Description
    Point

    Properties

    | Edit this page 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
    Type Description
    Geometry
    Overrides
    Geometry.Boundary
    | Edit this page View Source

    BoundaryDimension

    Declaration
    public override Dimension BoundaryDimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    Geometry.BoundaryDimension
    | Edit this page View Source

    Coordinate

    Returns a vertex of this geometry (usually, but not necessarily, the first one), or null if the geometry is empty.

    Declaration
    public override Coordinate Coordinate { get; }
    Property Value
    Type Description
    Coordinate

    A coordinate which is a vertex of this Geometry.

    Overrides
    Geometry.Coordinate
    Remarks

    The returned coordinate should not be assumed to be an actual Coordinate object used in the internal representation.

    | Edit this page View Source

    CoordinateSequence

    Declaration
    public CoordinateSequence CoordinateSequence { get; }
    Property Value
    Type Description
    CoordinateSequence
    | Edit this page View Source

    Coordinates

    Declaration
    public override Coordinate[] Coordinates { get; }
    Property Value
    Type Description
    Coordinate[]
    Overrides
    Geometry.Coordinates
    | Edit this page View Source

    Dimension

    Declaration
    public override Dimension Dimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    Geometry.Dimension
    | Edit this page View Source

    GeometryType

    Returns the name of this object's interface.

    Declaration
    public override string GeometryType { get; }
    Property Value
    Type Description
    string

    "Point"

    Overrides
    Geometry.GeometryType
    | Edit this page View Source

    IsEmpty

    Declaration
    public override bool IsEmpty { get; }
    Property Value
    Type Description
    bool
    Overrides
    Geometry.IsEmpty
    | Edit this page View Source

    M

    Declaration
    public double M { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    NumPoints

    Declaration
    public override int NumPoints { get; }
    Property Value
    Type Description
    int
    Overrides
    Geometry.NumPoints
    | Edit this page View Source

    OgcGeometryType

    Gets the OGC geometry type

    Declaration
    public override OgcGeometryType OgcGeometryType { get; }
    Property Value
    Type Description
    OgcGeometryType
    Overrides
    Geometry.OgcGeometryType
    | Edit this page View Source

    SortIndex

    Gets a value to sort the geometry

    Declaration
    protected override Geometry.SortIndexValue SortIndex { get; }
    Property Value
    Type Description
    Geometry.SortIndexValue
    Overrides
    Geometry.SortIndex
    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.

    | Edit this page View Source

    X

    Gets a value indicating the x-ordinate of this point

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    double
    Remarks

    Deviation from JTS: this implementation does not throw an exception when this property is accessed or set

    | Edit this page View Source

    Y

    Gets a value indicating the y-ordinate of this point

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    double
    Remarks

    Deviation from JTS: this implementation does not throw an exception when this property is accessed or set

    | Edit this page View Source

    Z

    Declaration
    public double Z { get; set; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Apply(ICoordinateFilter)

    Performs an operation with or on this Geometry's coordinates.

    Declaration
    public override void Apply(ICoordinateFilter filter)
    Parameters
    Type Name Description
    ICoordinateFilter filter

    The filter to apply to this Geometry's coordinates

    Overrides
    Geometry.Apply(ICoordinateFilter)
    Remarks

    If this method modifies any coordinate values, GeometryChanged() must be called to update the geometry state. Note that you cannot use this method to modify this Geometry if its underlying CoordinateSequence's #get method returns a copy of the Coordinate, rather than the actual Coordinate stored (if it even stores Coordinate objects at all).

    | Edit this page View Source

    Apply(ICoordinateSequenceFilter)

    Performs an operation on the coordinates in this Geometry's CoordinateSequences.

    Declaration
    public override void Apply(ICoordinateSequenceFilter filter)
    Parameters
    Type Name Description
    ICoordinateSequenceFilter filter

    The filter to apply

    Overrides
    Geometry.Apply(ICoordinateSequenceFilter)
    Remarks

    If the filter reports that a coordinate value has been changed, GeometryChanged() will be called automatically.

    | Edit this page View Source

    Apply(IEntireCoordinateSequenceFilter)

    Performs an operation on this Geometry's CoordinateSequences.

    Declaration
    public override void Apply(IEntireCoordinateSequenceFilter filter)
    Parameters
    Type Name Description
    IEntireCoordinateSequenceFilter filter

    The filter to apply

    Overrides
    Geometry.Apply(IEntireCoordinateSequenceFilter)
    Remarks

    If the filter reports that a coordinate value has been changed, GeometryChanged() will be called automatically.

    | Edit this page View Source

    Apply(IGeometryComponentFilter)

    Performs an operation with or on this Geometry and its component Geometry's. Only GeometryCollections and Polygons have component Geometry's; for Polygons they are the LinearRings of the shell and holes.

    Declaration
    public override void Apply(IGeometryComponentFilter filter)
    Parameters
    Type Name Description
    IGeometryComponentFilter filter

    The filter to apply to this Geometry.

    Overrides
    Geometry.Apply(IGeometryComponentFilter)
    | Edit this page View Source

    Apply(IGeometryFilter)

    Performs an operation with or on this Geometry and its subelement Geometrys (if any). Only GeometryCollections and subclasses have subelement Geometry's.

    Declaration
    public override void Apply(IGeometryFilter filter)
    Parameters
    Type Name Description
    IGeometryFilter filter

    The filter to apply to this Geometry (and its children, if it is a GeometryCollection).

    Overrides
    Geometry.Apply(IGeometryFilter)
    | Edit this page View Source

    CompareToSameClass(object)

    Declaration
    protected override int CompareToSameClass(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    int
    Overrides
    Geometry.CompareToSameClass(object)
    | Edit this page View Source

    CompareToSameClass(object, IComparer<CoordinateSequence>)

    Declaration
    protected override int CompareToSameClass(object other, IComparer<CoordinateSequence> comparer)
    Parameters
    Type Name Description
    object other
    IComparer<CoordinateSequence> comparer
    Returns
    Type Description
    int
    Overrides
    Geometry.CompareToSameClass(object, IComparer<CoordinateSequence>)
    | Edit this page View Source

    ComputeEnvelopeInternal()

    Declaration
    protected override Envelope ComputeEnvelopeInternal()
    Returns
    Type Description
    Envelope
    Overrides
    Geometry.ComputeEnvelopeInternal()
    | Edit this page View Source

    CopyInternal()

    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
    Geometry.CopyInternal()
    | Edit this page View Source

    EqualsExact(Geometry, double)

    Declaration
    public override bool EqualsExact(Geometry other, double tolerance)
    Parameters
    Type Name Description
    Geometry other
    double tolerance
    Returns
    Type Description
    bool
    Overrides
    Geometry.EqualsExact(Geometry, double)
    | Edit this page View Source

    GetOrdinates(Ordinate)

    Gets an array of double ordinate values

    Declaration
    public override double[] GetOrdinates(Ordinate ordinate)
    Parameters
    Type Name Description
    Ordinate ordinate

    The ordinate index

    Returns
    Type Description
    double[]

    An array of ordinate values

    Overrides
    Geometry.GetOrdinates(Ordinate)
    | Edit this page View Source

    Normalize()

    Declaration
    public override void Normalize()
    Overrides
    Geometry.Normalize()
    | Edit this page View Source

    Reverse()

    Computes a new geometry which has all component coordinate sequences in reverse order (opposite orientation) to this one.

    Declaration
    [Obsolete("Call Geometry.Reverse()")]
    public override Geometry Reverse()
    Returns
    Type Description
    Geometry

    A reversed geometry

    Overrides
    Geometry.Reverse()
    Remarks

    Don't override this function, implement ReverseInternal().

    | Edit this page View Source

    ReverseInternal()

    The actual implementation of the Reverse() function for POINTs.

    Declaration
    protected override Geometry ReverseInternal()
    Returns
    Type Description
    Geometry

    A reversed geometry

    Overrides
    Geometry.ReverseInternal()

    Implements

    IComparable
    IComparable<T>
    IPuntal

    Extension Methods

    PolygonalExtracter.GetPolygonals<TCollection>(Geometry)
    PolygonalExtracter.GetPolygonals<TCollection>(Geometry, TCollection)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX