C# Класс 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.
Наследование: Geometry
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Clone() публичный Метод

Return a copy of this geometry
public Clone ( ) : Polygon
Результат Polygon

Contains() публичный Метод

public Contains ( System.Point point ) : bool
point System.Point
Результат bool

Distance() публичный Метод

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
Результат double

Equals() публичный Метод

Determines if this Polygon and the specified Polygon object has the same values
public Equals ( Polygon p ) : bool
p Polygon Polygon to compare with
Результат bool

GetBoundingBox() публичный Метод

Returns the bounding box of the object
public GetBoundingBox ( ) : BoundingBox
Результат BoundingBox

GetHashCode() публичный Метод

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
Результат int

InteriorRing() публичный Метод

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
Результат LinearRing

IsEmpty() публичный Метод

If true, then this Geometry represents the empty point set, Ø, for the coordinate space.
public IsEmpty ( ) : bool
Результат bool

Polygon() публичный Метод

Instatiates a polygon
public Polygon ( ) : System
Результат System

Polygon() публичный Метод

Instatiates a polygon based on one extorier ring.
public Polygon ( LinearRing exteriorRing ) : System
exteriorRing LinearRing Exterior ring
Результат System

Polygon() публичный Метод

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
Результат System