Search Results for

    Show / Hide Table of Contents

    Class LinearRing

    Models an OGC SFS LinearRing.

    Inheritance
    object
    Geometry
    LineString
    LinearRing
    Implements
    IComparable
    IComparable<Geometry>
    ILineal
    Inherited Members
    LineString.Empty
    LineString.Coordinates
    LineString.GetOrdinates(Ordinate)
    LineString.CoordinateSequence
    LineString.GetCoordinateN(int)
    LineString.Coordinate
    LineString.Dimension
    LineString.IsEmpty
    LineString.NumPoints
    LineString.GetPointN(int)
    LineString.StartPoint
    LineString.EndPoint
    LineString.IsRing
    LineString.OgcGeometryType
    LineString.Length
    LineString.Boundary
    LineString.IsCoordinate(Coordinate)
    LineString.ComputeEnvelopeInternal()
    LineString.EqualsExact(Geometry, double)
    LineString.Apply(ICoordinateFilter)
    LineString.Apply(ICoordinateSequenceFilter)
    LineString.Apply(IEntireCoordinateSequenceFilter)
    LineString.Apply(IGeometryFilter)
    LineString.Apply(IGeometryComponentFilter)
    LineString.Normalize()
    LineString.IsEquivalentClass(Geometry)
    LineString.CompareToSameClass(object)
    LineString.CompareToSameClass(object, IComparer<CoordinateSequence>)
    LineString.this[int]
    LineString.Count
    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.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.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 LinearRing : LineString, IComparable, IComparable<Geometry>, ILineal
    Remarks

    A LinearRing is a LineString which is both closed and simple. In other words, the first and last coordinate in the ring must be equal, and the ring must not self-intersect. Either orientation of the ring is allowed.

    A ring must have either 0 or 3 or more points. The first and last points must be equal (in 2D). If these conditions are not met, the constructors throw an ArgumentException
    A ring with 3 points is invalid, because it is collapsed and thus has a self-intersection. It is allowed to be constructed so that it can be represented, and repaired if needed.

    Constructors

    | Edit this page View Source

    LinearRing(CoordinateSequence, GeometryFactory)

    Constructs a LinearRing with the vertices specified by the given CoordinateSequence.

    Declaration
    public LinearRing(CoordinateSequence points, GeometryFactory factory)
    Parameters
    Type Name Description
    CoordinateSequence points

    A sequence points forming a closed and simple linestring, or null to create the empty geometry.

    GeometryFactory factory

    The factory that creates this LinearRing

    Exceptions
    Type Condition
    ArgumentException

    If the ring is not closed, or has too few points

    | Edit this page View Source

    LinearRing(Coordinate[])

    Initializes a new instance of the LinearRing class.

    Declaration
    public LinearRing(Coordinate[] points)
    Parameters
    Type Name Description
    Coordinate[] points

    The points used for create this instance.

    Remarks

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

    Exceptions
    Type Condition
    ArgumentException

    If the ring is not closed, or has too few points

    Fields

    | Edit this page View Source

    MinimumValidSize

    The minimum number of vertices allowed in a valid non-empty ring. Empty rings with 0 vertices are also valid.

    Declaration
    public const int MinimumValidSize = 3
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    BoundaryDimension

    Returns Dimensions.False, since by definition LinearRings do not have a boundary.

    Declaration
    public override Dimension BoundaryDimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    LineString.BoundaryDimension
    | 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

    "LinearRing"

    Overrides
    LineString.GeometryType
    | Edit this page View Source

    IsCCW

    Gets a value indicating if this LINEARRING is oriented CounterClockwise

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

    IsClosed

    Declaration
    public override bool IsClosed { get; }
    Property Value
    Type Description
    bool
    Overrides
    LineString.IsClosed
    | 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
    LineString.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.

    Methods

    | 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
    LineString.CopyInternal()
    | 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
    LineString.Reverse()
    Remarks

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

    | Edit this page View Source

    ReverseInternal()

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

    Declaration
    protected override Geometry ReverseInternal()
    Returns
    Type Description
    Geometry

    A reversed geometry

    Overrides
    LineString.ReverseInternal()

    Implements

    IComparable
    IComparable<T>
    ILineal

    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