GeoMultiPolygon Class
A set of polygons, such as a country and its islands.
public sealed class GeoMultiPolygon : GeoGeometry- Inheritance
GeoGeometryGeoMultiPolygon
Constructors
| Name | Description |
|---|---|
| GeoMultiPolygon(IEnumerable<GeoPolygon>) | Initializes a new instance of the GeoMultiPolygon class. |
GeoMultiPolygon(IEnumerable<GeoPolygon>)
GeoMultiPolygon.csInitializes a new instance of the GeoMultiPolygon class.
public GeoMultiPolygon(IEnumerable<GeoPolygon> polygons)Parameters
polygonsIEnumerable<GeoPolygon>- The polygons.
Properties
| Name | Description |
|---|---|
| Polygons | Gets the polygons. |
| Type | Gets the type of the geometry. |
Polygons
GeoMultiPolygon.csMethods
| Name | Description |
|---|---|
| Contains(GeoPosition) | Gets a value that indicates whether a position is inside one of the polygons. See GeoPolygon.Contains. |
| Contains(GeoPosition, GeoEdgeType) | Gets a value that indicates whether a position is inside one of the polygons, whose edges are drawn as an edge type says. See GeoPolygon.Contains. |
| GetPositions() | Gets the positions of the geometry: every position of every point, line and ring, in order. |
Contains overloads
Contains(GeoPosition)
GeoMultiPolygon.csGets a value that indicates whether a position is inside one of the polygons. See GeoPolygon.Contains.
public bool Contains(GeoPosition position)Parameters
positionGeoPosition- The position. The altitude is ignored.
Returns
bool true when the position is inside one of the polygons; otherwise, false.
Contains(GeoPosition, GeoEdgeType)
GeoMultiPolygon.csGets a value that indicates whether a position is inside one of the polygons, whose edges are drawn as an edge type says. See GeoPolygon.Contains.
public bool Contains(GeoPosition position, GeoEdgeType edgeType)Parameters
positionGeoPosition- The position. The altitude is ignored.
edgeTypeGeoEdgeType- How the edges are drawn.
Returns
bool true when the position is inside one of the polygons; otherwise, false.
GetPositions()
GeoMultiPolygon.csGets the positions of the geometry: every position of every point, line and ring, in order.
public override IEnumerable<GeoPosition> GetPositions()Returns
IEnumerable<GeoPosition> The positions.