Class Polygon
Represents is a plane geometry figure that is bounded by a finite chain of straight line segments closing in a loop to form a closed chain or circuit.
Inherited Members
Namespace: Dse.Geometry
Assembly: Dse.dll
Syntax
public class Polygon : GeometryBase
Constructors
Polygon()
Creates a new instance of Polygon with no rings (empty).
Declaration
public Polygon()
Polygon(Point[])
Creates a new instance of Polygon with a single ring.
Declaration
public Polygon(params Point[] points)
Parameters
Type | Name | Description |
---|---|---|
Point[] | points | The points of the single ring |
Polygon(IList<Point>[])
Creates a new instance of Polygon with a sequence of rings.
Declaration
public Polygon(params IList<Point>[] points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<Point>[] | points | The points of the single ring |
Polygon(IList<IList<Point>>)
Creates a new instance of Polygon using multiple rings.
Declaration
public Polygon(IList<IList<Point>> rings)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Collections.Generic.IList<Point>> | rings | The polygon rings |
Properties
GeoCoordinates
Declaration
protected override IEnumerable GeoCoordinates { get; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable |
Overrides
Rings
A read-only list describing the rings of the polygon.
Declaration
public IList<IList<Point>> Rings { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.Collections.Generic.IList<Point>> |
Methods
Equals(Object)
Returns a value indicating whether this instance and a specified object represent the same value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Returns the hash code based on the value of this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Parse(String)
Creates a Polygon instance from a Well-known Text(WKT) representation of a polygon.
Declaration
public static Polygon Parse(string textValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | textValue |
Returns
Type | Description |
---|---|
Polygon |
ToString()
Returns Well-known text (WKT) representation of the geometry object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |