Represents the polygon geometry.
Inheritance Hierarchy
PreStormGeometryBase
PreStormGeometry
PreStormPolygon
Namespace: PreStorm
Assembly: PreStorm (in PreStorm.dll) Version: 1.8.19.0 (1.8.19.0)
Syntax
The Polygon type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Polygon | Initializes a new instance of the Polygon class |
Properties
Name | Description | |
---|---|---|
curveRings |
The array of rings that may contain true curves.
| |
rings |
The array of rings.
| |
spatialReference |
The spatial reference of this geometry.
(Inherited from GeometryBase.) |
Methods
Name | Description | |
---|---|---|
FromJson |
Creates a new polygon from JSON.
| |
FromWkt |
Creates a new polygon from well-known text (WKT).
| |
ToString |
Returns the JSON representation of the geometry.
(Inherited from GeometryBase.) |
Operators
Name | Description | |
---|---|---|
(String to Polygon) |
Deserializes the JSON string into a Polygon object.
| |
(Polygon to String) |
Returns the JSON representation of the geometry.
|
Extension Methods
Name | Description | |
---|---|---|
Area |
Calculates the area of the polygon.
(Defined by GeometryFunctions.) | |
Contains(Multipoint) | Overloaded.
Determines if the polygon completely contains the multipoint.
(Defined by GeometryFunctions.) | |
Contains(Point) | Overloaded.
Determines if the polygon contains the point.
(Defined by GeometryFunctions.) | |
Contains(Polygon) | Overloaded.
Determines if the polygon completely contains the other polygon.
(Defined by GeometryFunctions.) | |
Contains(Polyline) | Overloaded.
Determines if the polygon completely contains the polyline.
(Defined by GeometryFunctions.) | |
Distance(Multipoint) | Overloaded.
Calculates the shortest distance to the multipoint.
(Defined by GeometryFunctions.) | |
Distance(Point) | Overloaded.
Calculates the shortest distance to the point.
(Defined by GeometryFunctions.) | |
Distance(Polygon) | Overloaded.
Calculates the distance to the other polygon.
(Defined by GeometryFunctions.) | |
Distance(Polyline) | Overloaded.
Calculates the shortest distance to the polyline.
(Defined by GeometryFunctions.) | |
Extent |
Returns the extent of this polygon.
(Defined by GeometryFunctions.) | |
Intersects(Polygon) | Overloaded.
Determines if the polygon intersects the other polygon.
(Defined by GeometryFunctions.) | |
Intersects(Polyline) | Overloaded.
Determines if the polygon intersects the polyline.
(Defined by GeometryFunctions.) | |
Perimeter |
Calculates the perimeter of the polygon.
(Defined by GeometryFunctions.) | |
ToJson |
Returns the JSON representation of the geometry.
(Defined by Json.) | |
ToKml |
Converts the geometry to KML.
(Defined by Kml.) | |
ToWkt |
Converts the geometry to well-known text (WKT).
(Defined by Wkt.) | |
Within |
Determines if the polygon is inside the other polygon.
(Defined by GeometryFunctions.) | |
WithinDistance(Multipoint, Double) | Overloaded.
Determines if the polygon is within the specified distance from the multipoint.
(Defined by GeometryFunctions.) | |
WithinDistance(Point, Double) | Overloaded.
Determines if the polygon is within the specified distance from the point.
(Defined by GeometryFunctions.) | |
WithinDistance(Polygon, Double) | Overloaded.
Determines if the polygon is within the specified distance from the other polygon.
(Defined by GeometryFunctions.) | |
WithinDistance(Polyline, Double) | Overloaded.
Determines if the polygon is within the specified distance from the polyline.
(Defined by GeometryFunctions.) |
See Also