Click or drag to resize

GeoJson.GeometryCollection<TCoordinates> Method (GeoJsonObjectArgs<TCoordinates>,GeoJsonGeometry<TCoordinates>[])

Creates a GeoJson GeometryCollection object.

Namespace:  MongoDB.Driver.GeoJsonObjectModel
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public static GeoJsonGeometryCollection<TCoordinates> GeometryCollection<TCoordinates>(
	GeoJsonObjectArgs<TCoordinates> args,
	params GeoJsonGeometry<TCoordinates>[] geometries
)
where TCoordinates : GeoJsonCoordinates

Parameters

args
Type: MongoDB.Driver.GeoJsonObjectModel.GeoJsonObjectArgs<TCoordinates>
The additional args.
geometries
Type:MongoDB.Driver.GeoJsonObjectModel.GeoJsonGeometry<TCoordinates>[]
The geometries.

Type Parameters

TCoordinates
The type of the coordinates.

Return Value

Type: GeoJsonGeometryCollection<TCoordinates>
A GeoJson GeometryCollection object.
See Also