Show / Hide Table of Contents

Class PostgisPolygon

Represents an Postgis 2D Polygon.

Inheritance
System.Object
PostgisGeometry
PostgisPolygon
Implements
IEquatable<PostgisPolygon>
IEnumerable<IEnumerable<Coordinate2D>>
Inherited Members
PostgisGeometry.SRID
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public class PostgisPolygon : PostgisGeometry, IEquatable<PostgisPolygon>, IEnumerable<IEnumerable<Coordinate2D>>

Constructors

PostgisPolygon(IEnumerable<IEnumerable<Coordinate2D>>)

Declaration
public PostgisPolygon(IEnumerable<IEnumerable<Coordinate2D>> rings)
Parameters
Type Name Description
IEnumerable<IEnumerable<Coordinate2D>> rings

PostgisPolygon(Coordinate2D[][])

Declaration
public PostgisPolygon(Coordinate2D[][] rings)
Parameters
Type Name Description
Coordinate2D[][] rings

Properties

Item[Int32]

Declaration
public Coordinate2D[] this[int ringIndex] { get; }
Parameters
Type Name Description
System.Int32 ringIndex
Property Value
Type Description
Coordinate2D[]

Item[Int32, Int32]

Declaration
public Coordinate2D this[int ringIndex, int pointIndex] { get; }
Parameters
Type Name Description
System.Int32 ringIndex
System.Int32 pointIndex
Property Value
Type Description
Coordinate2D

RingCount

Declaration
public int RingCount { get; }
Property Value
Type Description
System.Int32

TotalPointCount

Declaration
public int TotalPointCount { get; }
Property Value
Type Description
System.Int32

Methods

Equals(PostgisPolygon)

Declaration
public bool Equals(PostgisPolygon other)
Parameters
Type Name Description
PostgisPolygon other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetEnumerator()

Declaration
public IEnumerator<IEnumerable<Coordinate2D>> GetEnumerator()
Returns
Type Description
IEnumerator<IEnumerable<Coordinate2D>>

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

GetLenHelper()

Declaration
protected override int GetLenHelper()
Returns
Type Description
System.Int32
Overrides
PostgisGeometry.GetLenHelper()

Operators

Equality(PostgisPolygon, PostgisPolygon)

Declaration
public static bool operator ==(PostgisPolygon x, PostgisPolygon y)
Parameters
Type Name Description
PostgisPolygon x
PostgisPolygon y
Returns
Type Description
System.Boolean

Inequality(PostgisPolygon, PostgisPolygon)

Declaration
public static bool operator !=(PostgisPolygon x, PostgisPolygon y)
Parameters
Type Name Description
PostgisPolygon x
PostgisPolygon y
Returns
Type Description
System.Boolean

Implements

IEquatable<>
IEnumerable<>
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX