Table of Contents

Method GeoIntersects

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

GeoIntersects<TCoordinates>(string, GeoJsonGeometry<TCoordinates>)

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

public static IMongoQuery GeoIntersects<TCoordinates>(string name, GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates

Parameters

name string

The name.

geometry GeoJsonGeometry<TCoordinates>

The geometry.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TCoordinates

The type of the coordinates.