Table of Contents

Method GeoIntersects

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

GeoIntersects<TMember, TCoordinates>(Expression<Func<TDocument, TMember>>, GeoJsonGeometry<TCoordinates>)

Tests that a location element specified by name intersects with the geometry (see $geoIntersects).

public IMongoQuery GeoIntersects<TMember, TCoordinates>(Expression<Func<TDocument, TMember>> memberExpression, GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression.

geometry GeoJsonGeometry<TCoordinates>

The geometry.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TMember

The type of the member.

TCoordinates

The type of the coordinates.