Polygon Class

PreStorm - A Data Client for ArcGIS Server REST API
Represents the polygon geometry.
Inheritance Hierarchy

SystemObject
  PreStormGeometryBase
    PreStormGeometry
      PreStormPolygon

Namespace:  PreStorm
Assembly:  PreStorm (in PreStorm.dll) Version: 1.8.19.0 (1.8.19.0)
Syntax

public sealed class Polygon : Geometry

The Polygon type exposes the following members.

Constructors

  NameDescription
Public methodPolygon
Initializes a new instance of the Polygon class
Top
Properties

  NameDescription
Public propertycurveRings
The array of rings that may contain true curves.
Public propertyrings
The array of rings.
Public propertyspatialReference
The spatial reference of this geometry.
(Inherited from GeometryBase.)
Top
Methods

  NameDescription
Public methodStatic memberFromJson
Creates a new polygon from JSON.
Public methodStatic memberFromWkt
Creates a new polygon from well-known text (WKT).
Public methodToString
Returns the JSON representation of the geometry.
(Inherited from GeometryBase.)
Top
Operators

  NameDescription
Public operatorStatic member(String to Polygon)
Deserializes the JSON string into a Polygon object.
Public operatorStatic member(Polygon to String)
Returns the JSON representation of the geometry.
Top
Extension Methods

  NameDescription
Public Extension MethodArea
Calculates the area of the polygon.
(Defined by GeometryFunctions.)
Public Extension MethodContains(Multipoint)Overloaded.
Determines if the polygon completely contains the multipoint.
(Defined by GeometryFunctions.)
Public Extension MethodContains(Point)Overloaded.
Determines if the polygon contains the point.
(Defined by GeometryFunctions.)
Public Extension MethodContains(Polygon)Overloaded.
Determines if the polygon completely contains the other polygon.
(Defined by GeometryFunctions.)
Public Extension MethodContains(Polyline)Overloaded.
Determines if the polygon completely contains the polyline.
(Defined by GeometryFunctions.)
Public Extension MethodDistance(Multipoint)Overloaded.
Calculates the shortest distance to the multipoint.
(Defined by GeometryFunctions.)
Public Extension MethodDistance(Point)Overloaded.
Calculates the shortest distance to the point.
(Defined by GeometryFunctions.)
Public Extension MethodDistance(Polygon)Overloaded.
Calculates the distance to the other polygon.
(Defined by GeometryFunctions.)
Public Extension MethodDistance(Polyline)Overloaded.
Calculates the shortest distance to the polyline.
(Defined by GeometryFunctions.)
Public Extension MethodExtent
Returns the extent of this polygon.
(Defined by GeometryFunctions.)
Public Extension MethodIntersects(Polygon)Overloaded.
Determines if the polygon intersects the other polygon.
(Defined by GeometryFunctions.)
Public Extension MethodIntersects(Polyline)Overloaded.
Determines if the polygon intersects the polyline.
(Defined by GeometryFunctions.)
Public Extension MethodPerimeter
Calculates the perimeter of the polygon.
(Defined by GeometryFunctions.)
Public Extension MethodToJson
Returns the JSON representation of the geometry.
(Defined by Json.)
Public Extension MethodToKml
Converts the geometry to KML.
(Defined by Kml.)
Public Extension MethodToWkt
Converts the geometry to well-known text (WKT).
(Defined by Wkt.)
Public Extension MethodWithin
Determines if the polygon is inside the other polygon.
(Defined by GeometryFunctions.)
Public Extension MethodWithinDistance(Multipoint, Double)Overloaded.
Determines if the polygon is within the specified distance from the multipoint.
(Defined by GeometryFunctions.)
Public Extension MethodWithinDistance(Point, Double)Overloaded.
Determines if the polygon is within the specified distance from the point.
(Defined by GeometryFunctions.)
Public Extension MethodWithinDistance(Polygon, Double)Overloaded.
Determines if the polygon is within the specified distance from the other polygon.
(Defined by GeometryFunctions.)
Public Extension MethodWithinDistance(Polyline, Double)Overloaded.
Determines if the polygon is within the specified distance from the polyline.
(Defined by GeometryFunctions.)
Top
See Also

Reference