Method Polygon
- Namespace
- MongoDB.Driver.GeoJsonObjectModel
- Assembly
- MongoDB.Driver.dll
Polygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params TCoordinates[])
Creates a GeoJson Polygon object.
public static GeoJsonPolygon<TCoordinates> Polygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates> args, params TCoordinates[] positions) where TCoordinates : GeoJsonCoordinates
Parameters
args
GeoJsonObjectArgs<TCoordinates>The additional args.
positions
TCoordinates[]The positions.
Returns
- GeoJsonPolygon<TCoordinates>
A GeoJson Polygon object.
Type Parameters
TCoordinates
The type of the coordinates.
Polygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, GeoJsonPolygonCoordinates<TCoordinates>)
Creates a GeoJson Polygon object.
public static GeoJsonPolygon<TCoordinates> Polygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates> args, GeoJsonPolygonCoordinates<TCoordinates> coordinates) where TCoordinates : GeoJsonCoordinates
Parameters
args
GeoJsonObjectArgs<TCoordinates>The additional args.
coordinates
GeoJsonPolygonCoordinates<TCoordinates>The coordinates.
Returns
- GeoJsonPolygon<TCoordinates>
A GeoJson Polygon object.
Type Parameters
TCoordinates
The type of the coordinates.
Polygon<TCoordinates>(GeoJsonPolygonCoordinates<TCoordinates>)
Creates a GeoJson Polygon object.
public static GeoJsonPolygon<TCoordinates> Polygon<TCoordinates>(GeoJsonPolygonCoordinates<TCoordinates> coordinates) where TCoordinates : GeoJsonCoordinates
Parameters
coordinates
GeoJsonPolygonCoordinates<TCoordinates>The coordinates.
Returns
- GeoJsonPolygon<TCoordinates>
A GeoJson Polygon object.
Type Parameters
TCoordinates
The type of the coordinates.
Polygon<TCoordinates>(params TCoordinates[])
Creates a GeoJson Polygon object.
public static GeoJsonPolygon<TCoordinates> Polygon<TCoordinates>(params TCoordinates[] positions) where TCoordinates : GeoJsonCoordinates
Parameters
positions
TCoordinates[]The positions.
Returns
- GeoJsonPolygon<TCoordinates>
A GeoJson Polygon object.
Type Parameters
TCoordinates
The type of the coordinates.