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
Afficher le fichier Open project: pauldendulk/Mapsui Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Return a copy of this geometry
public Clone ( ) : Polygon
Résultat Polygon

Contains() public méthode

public Contains ( System.Point point ) : bool
point System.Point
Résultat bool

Distance() public méthode

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
Résultat double

Equals() public méthode

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

GetBoundingBox() public méthode

Returns the bounding box of the object
public GetBoundingBox ( ) : BoundingBox
Résultat BoundingBox

GetHashCode() public méthode

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
Résultat int

InteriorRing() public méthode

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
Résultat LinearRing

IsEmpty() public méthode

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

Polygon() public méthode

Instatiates a polygon
public Polygon ( ) : System
Résultat System

Polygon() public méthode

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

Polygon() public méthode

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
Résultat System