Method GeoIntersects
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
GeoIntersects(FieldDefinition, GeoJsonGeometry)
Creates a geo intersects filter.
public FilterDefinition<TDocument> GeoIntersects<TCoordinates>(FieldDefinition<TDocument> field, GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates
Parameters
field
FieldDefinition
The field.
geometry
GeoJsonGeometry
The geometry.
Returns
A geo intersects filter.
Type Parameters
TCoordinates
The type of the coordinates.
GeoIntersects(Expression<Func<TDocument, object>>, GeoJsonGeometry)
Creates a geo intersects filter.
public FilterDefinition<TDocument> GeoIntersects<TCoordinates>(Expression<Func<TDocument, object>> field, GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates
Parameters
field
Expression<Func<TDocument, object>>
The field.
geometry
GeoJsonGeometry
The geometry.
Returns
A geo intersects filter.
Type Parameters
TCoordinates
The type of the coordinates.