Method GeoIntersects
GeoIntersects<TCoordinates>(FieldDefinition<TDocument>, GeoJsonGeometry<TCoordinates>)
Creates a geo intersects filter.
public FilterDefinition<TDocument> GeoIntersects<TCoordinates>(FieldDefinition<TDocument> field, GeoJsonGeometry<TCoordinates> geometry) where TCoordinates : GeoJsonCoordinates
Parameters
field
FieldDefinition <TDocument>The field.
geometry
GeoJson <TCoordinates>Geometry The geometry.
Returns
- Filter
Definition <TDocument> A geo intersects filter.
Type Parameters
TCoordinates
The type of the coordinates.
GeoIntersects<TCoordinates>(Expression<Func<TDocument, object>>, GeoJsonGeometry<TCoordinates>)
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
GeoJson <TCoordinates>Geometry The geometry.
Returns
- Filter
Definition <TDocument> A geo intersects filter.
Type Parameters
TCoordinates
The type of the coordinates.