Method GeometryCollection
- Namespace
- MongoDB.Driver.Geo
Json Object Model
- 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
args
GeoJson <TCoordinates>Object Args The additional args.
geometries
GeoJson <TCoordinates>[]Geometry The geometries.
Returns
- Geo
Json <TCoordinates>Geometry Collection A GeoJson GeometryCollection object.
Type Parameters
TCoordinates
The 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
geometries
GeoJson <TCoordinates>[]Geometry The geometries.
Returns
- Geo
Json <TCoordinates>Geometry Collection A GeoJson GeometryCollection object.
Type Parameters
TCoordinates
The type of the coordinates.