Table of Contents

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

args GeoJsonObjectArgs<TCoordinates>

The additional args.

geometries GeoJsonGeometry<TCoordinates>[]

The geometries.

Returns

GeoJsonGeometryCollection<TCoordinates>

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 GeoJsonGeometry<TCoordinates>[]

The geometries.

Returns

GeoJsonGeometryCollection<TCoordinates>

A GeoJson GeometryCollection object.

Type Parameters

TCoordinates

The type of the coordinates.