Table of Contents

Method LineString

Namespace
MongoDB.Driver.GeoJsonObjectModel
Assembly
MongoDB.Driver.dll

LineString<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params TCoordinates[])

Creates a GeoJson LineString object.

public static GeoJsonLineString<TCoordinates> LineString<TCoordinates>(GeoJsonObjectArgs<TCoordinates> args, params TCoordinates[] positions) where TCoordinates : GeoJsonCoordinates

Parameters

args GeoJsonObjectArgs<TCoordinates>

The additional args.

positions TCoordinates[]

The positions.

Returns

GeoJsonLineString<TCoordinates>

A GeoJson LineString object.

Type Parameters

TCoordinates

The type of the coordinates.

LineString<TCoordinates>(params TCoordinates[])

Creates a GeoJson LineString object.

public static GeoJsonLineString<TCoordinates> LineString<TCoordinates>(params TCoordinates[] positions) where TCoordinates : GeoJsonCoordinates

Parameters

positions TCoordinates[]

The positions.

Returns

GeoJsonLineString<TCoordinates>

A GeoJson LineString object.

Type Parameters

TCoordinates

The type of the coordinates.