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
파일 보기 프로젝트 열기: pauldendulk/Mapsui 1 사용 예제들

공개 메소드들

메소드 설명
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