Method FeatureCollection
- Namespace
- MongoDB.Driver.GeoJsonObjectModel
- Assembly
- MongoDB.Driver.dll
FeatureCollection<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params GeoJsonFeature<TCoordinates>[])
Creates a GeoJson FeatureCollection object.
public static GeoJsonFeatureCollection<TCoordinates> FeatureCollection<TCoordinates>(GeoJsonObjectArgs<TCoordinates> args, params GeoJsonFeature<TCoordinates>[] features) where TCoordinates : GeoJsonCoordinates
Parameters
args
GeoJsonObjectArgs<TCoordinates>The additional args.
features
GeoJsonFeature<TCoordinates>[]The features.
Returns
- GeoJsonFeatureCollection<TCoordinates>
A GeoJson FeatureCollection object.
Type Parameters
TCoordinates
The type of the coordinates.
FeatureCollection<TCoordinates>(params GeoJsonFeature<TCoordinates>[])
Creates a GeoJson FeatureCollection object.
public static GeoJsonFeatureCollection<TCoordinates> FeatureCollection<TCoordinates>(params GeoJsonFeature<TCoordinates>[] features) where TCoordinates : GeoJsonCoordinates
Parameters
features
GeoJsonFeature<TCoordinates>[]The features.
Returns
- GeoJsonFeatureCollection<TCoordinates>
A GeoJson FeatureCollection object.
Type Parameters
TCoordinates
The type of the coordinates.