Method GeometryCollection
- Namespace
 - MongoDB.Driver.GeoJsonObjectModel
 
- Assembly
 - MongoDB.Driver.dll
 
GeometryCollection<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params GeoJsonGeometry<TCoordinates>[])
Creates a GeoJson GeometryCollection object.
public static GeoJsonGeometryCollection<TCoordinates> GeometryCollection<TCoordinates>(GeoJsonObjectArgs<TCoordinates> args, params GeoJsonGeometry<TCoordinates>[] geometries) where TCoordinates : GeoJsonCoordinates
Parameters
argsGeoJsonObjectArgs<TCoordinates>The additional args.
geometriesGeoJsonGeometry<TCoordinates>[]The geometries.
Returns
- GeoJsonGeometryCollection<TCoordinates>
 A GeoJson GeometryCollection object.
Type Parameters
TCoordinatesThe type of the coordinates.
GeometryCollection<TCoordinates>(params GeoJsonGeometry<TCoordinates>[])
Creates a GeoJson GeometryCollection object.
public static GeoJsonGeometryCollection<TCoordinates> GeometryCollection<TCoordinates>(params GeoJsonGeometry<TCoordinates>[] geometries) where TCoordinates : GeoJsonCoordinates
Parameters
geometriesGeoJsonGeometry<TCoordinates>[]The geometries.
Returns
- GeoJsonGeometryCollection<TCoordinates>
 A GeoJson GeometryCollection object.
Type Parameters
TCoordinatesThe type of the coordinates.