Method Feature
- Namespace
- MongoDB.Driver.GeoJsonObjectModel
- Assembly
- MongoDB.Driver.dll
Feature<TCoordinates>(GeoJsonGeometry<TCoordinates>)
Creates a GeoJson Feature object.
public static GeoJsonFeature<TCoordinates> Feature<TCoordinates>(GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates
Parameters
geometry
GeoJsonGeometry<TCoordinates>The geometry.
Returns
- GeoJsonFeature<TCoordinates>
A GeoJson Feature object.
Type Parameters
TCoordinates
The type of the coordinates.
Feature<TCoordinates>(GeoJsonFeatureArgs<TCoordinates>, GeoJsonGeometry<TCoordinates>)
Creates a GeoJson Feature object.
public static GeoJsonFeature<TCoordinates> Feature<TCoordinates>(GeoJsonFeatureArgs<TCoordinates> args, GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates
Parameters
args
GeoJsonFeatureArgs<TCoordinates>The additional args.
geometry
GeoJsonGeometry<TCoordinates>The geometry.
Returns
- GeoJsonFeature<TCoordinates>
A GeoJson Feature object.
Type Parameters
TCoordinates
The type of the coordinates.