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