C# Class Mapsui.Geometries.Polygon

A Polygon is a planar Surface, defined by 1 exterior boundary and 0 or more interior boundaries. Each interior boundary defines a hole in the Polygon.
Vertices of rings defining holes in polygons are in the opposite direction of the exterior ring.
Inheritance: Geometry
Show file Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
Clone ( ) : Polygon

Return a copy of this geometry

Contains ( System.Point point ) : bool
Distance ( System.Point point ) : double

Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.

Equals ( Polygon p ) : bool

Determines if this Polygon and the specified Polygon object has the same values

GetBoundingBox ( ) : BoundingBox

Returns the bounding box of the object

GetHashCode ( ) : int

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

InteriorRing ( int n ) : LinearRing

Returns the Nth interior ring for this Polygon as a LineString

This method is supplied as part of the OpenGIS Simple Features Specification

IsEmpty ( ) : bool

If true, then this Geometry represents the empty point set, Ø, for the coordinate space.

Polygon ( ) : System

Instatiates a polygon

Polygon ( LinearRing exteriorRing ) : System

Instatiates a polygon based on one extorier ring.

Polygon ( LinearRing exteriorRing, IList interiorRings ) : System

Instatiates a polygon based on one extorier ring and a collection of interior rings.

Method Details

Clone() public method

Return a copy of this geometry
public Clone ( ) : Polygon
return Polygon

Contains() public method

public Contains ( System.Point point ) : bool
point System.Point
return bool

Distance() public method

Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.
public Distance ( System.Point point ) : double
point System.Point
return double

Equals() public method

Determines if this Polygon and the specified Polygon object has the same values
public Equals ( Polygon p ) : bool
p Polygon Polygon to compare with
return bool

GetBoundingBox() public method

Returns the bounding box of the object
public GetBoundingBox ( ) : BoundingBox
return BoundingBox

GetHashCode() public method

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
return int

InteriorRing() public method

Returns the Nth interior ring for this Polygon as a LineString
This method is supplied as part of the OpenGIS Simple Features Specification
public InteriorRing ( int n ) : LinearRing
n int
return LinearRing

IsEmpty() public method

If true, then this Geometry represents the empty point set, Ø, for the coordinate space.
public IsEmpty ( ) : bool
return bool

Polygon() public method

Instatiates a polygon
public Polygon ( ) : System
return System

Polygon() public method

Instatiates a polygon based on one extorier ring.
public Polygon ( LinearRing exteriorRing ) : System
exteriorRing LinearRing Exterior ring
return System

Polygon() public method

Instatiates a polygon based on one extorier ring and a collection of interior rings.
public Polygon ( LinearRing exteriorRing, IList interiorRings ) : System
exteriorRing LinearRing Exterior ring
interiorRings IList Interior rings
return System