Click or drag to resize

Polygon Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Represents the physical shape of a closed polygonal area such as a lake or national park. Not to be confused with a Polygon, which is a GIBObject containing geometries, i.e. an array of Geometry objects such as Geometry.Polygons.
Inheritance Hierarchy

Namespace:  Telogis.GeoBase.Geometry
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class Polygon : Geometry

The Polygon type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCode exampleBoundingBox
Calculates the bounding-box of the polygon.
(Overrides GeometryBoundingBox.)
Public propertyInnerRings
The holes and islands of a polygon.
Public propertyOuterRing
The shell of the polygon. Must be clockwise.
Public propertyCode exampleWKT
The WKT representation of the polygon.
(Overrides GeometryWKT.)
Public propertyCode exampleWKTWithZ
The WKT representation of the polygon with Z Level.
Top
Methods
  NameDescription
Public methodContains
Determines whether the Polygon contains or touches a point.
Public methodDistanceTo
Returns the shortest distance from the given location to the edge of this Polygon, in the specified units. If the given location is inside this Polygon, the distance returned will be zero. This is calculated using the great circle distance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPythagoreanArea Obsolete.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleIntersects(BoundingBox)
Determines whether the Polygon intersects, contains, or touches a BoundingBox.
Public methodCode exampleIntersects(LatLon)
Determines whether the Polygon intersects, contains, or touches a line.
Public methodPythagoreanDistanceTo Obsolete.
Public methodQuickArea
Calculates a Pythagorean approximation of the area.
Public methodQuickDistanceTo
Returns the Pythagorean distance from the given location to the edge of this Polygon, in the specified units. If the given location is inside this Polygon, the distance returned will be zero. See remarks for comments on the accuracy of this method.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

A polygon feature is made up of a number of PolygonRings. The OuterRing property forms the external boundary of the polygon. One or more InnerRings may be specified to add holes or islands within the polygon.

A ring must contain at least 4 points. The first and last points must be equal.

A simple polygon like a lake might only have an OuterRing, which describes the outline of the lake. A lake with an island in the middle of it is represented by a polygon with an OuterRing and an a single InnerRing for the island. Furthermore, A lake with an island with a lake would be represented by a polygon with an OuterRing and two InnerRings.

The winding of polygons is irrelevant, however by convention filled areas are oriented clockwise while holes are oriented counter-clockwise.

Intersecting InnerRings must be merged into a single Ring.

Related articles: Data Query Concept.

See Also