Show / Hide Table of Contents

    Class LinearRing

    A LinearRing is a LineString that is both closed and simple.

    Inheritance
    System.Object
    Geometry
    LineString
    LinearRing
    Implements
    IGeometry
    System.IEquatable<Geometry>
    Inherited Members
    LineString.Vertices
    LineString.StartPoint
    LineString.EndPoint
    LineString.Length
    LineString.NumPoints
    LineString.IsClosed
    LineString.Point(Int32)
    LineString.BoundingBox
    LineString.Equals(LineString)
    LineString.GetHashCode()
    LineString.IsEmpty()
    LineString.IsSimple()
    LineString.Distance(Point)
    LineString.Contains(Point)
    LineString.Equals(Geometry)
    LineString.GetSegments()
    Geometry.Envelope
    Geometry.GetBoundingBox()
    Geometry.AsText()
    Geometry.AsBinary()
    Geometry.ToString()
    Geometry.GeomFromText(String)
    Geometry.GeomFromWKB(Byte[])
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Mapsui.Geometries
    Assembly: Mapsui.Geometries.dll
    Syntax
    public class LinearRing : LineString, IGeometry, IEquatable<Geometry>

    Constructors

    | Improve this Doc View Source

    LinearRing()

    Initializes an instance of a LinearRing

    Declaration
    public LinearRing()
    | Improve this Doc View Source

    LinearRing(IEnumerable<Point>)

    Initializes an instance of a LinearRing from a set of vertices

    Declaration
    public LinearRing(IEnumerable<Point> vertices)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<Point> vertices
    | Improve this Doc View Source

    LinearRing(IEnumerable<Double[]>)

    Initializes an instance of a LinearRing

    Declaration
    public LinearRing(IEnumerable<double[]> points)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Double[]> points

    Properties

    | Improve this Doc View Source

    Area

    Returns the area of the LinearRing

    Declaration
    public double Area { get; }
    Property Value
    Type Description
    System.Double

    Methods

    | Improve this Doc View Source

    Clone()

    Return a copy of this geometry

    Declaration
    public LinearRing Clone()
    Returns
    Type Description
    LinearRing

    Copy of Geometry

    | Improve this Doc View Source

    GetLineString()

    Returns a clone of the LinearRing as LineString

    Declaration
    public LineString GetLineString()
    Returns
    Type Description
    LineString

    LineString

    | Improve this Doc View Source

    IsCCW()

    Tests whether a ring is oriented counter-clockwise.

    Declaration
    public bool IsCCW()
    Returns
    Type Description
    System.Boolean

    Returns true if ring is oriented counter-clockwise.

    | Improve this Doc View Source

    IsPointWithin(Point)

    Returns true of the Point 'p' is within the instance of this ring

    Declaration
    public bool IsPointWithin(Point p)
    Parameters
    Type Name Description
    Point p
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Rotate(Double)

    Declaration
    public LinearRing Rotate(double degrees)
    Parameters
    Type Name Description
    System.Double degrees
    Returns
    Type Description
    LinearRing
    | Improve this Doc View Source

    Rotate(Double, Point)

    Declaration
    public LinearRing Rotate(double degrees, Point center)
    Parameters
    Type Name Description
    System.Double degrees
    Point center
    Returns
    Type Description
    LinearRing

    Implements

    IGeometry
    System.IEquatable<T>

    Extension Methods

    GeometryExtensions.Copy(IGeometry)
    GeometryIterator.AllVertices(IGeometry)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX