Table of Contents

Method PolygonCoordinates

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

PolygonCoordinates<TCoordinates>(params TCoordinates[])

Creates the coordinates of a GeoJson Polygon object.

public static GeoJsonPolygonCoordinates<TCoordinates> PolygonCoordinates<TCoordinates>(params TCoordinates[] positions) where TCoordinates : GeoJsonCoordinates

Parameters

positions TCoordinates[]

The positions.

Returns

GeoJsonPolygonCoordinates<TCoordinates>

The coordinates of a GeoJson Polygon object.

Type Parameters

TCoordinates

The type of the coordinates.

PolygonCoordinates<TCoordinates>(GeoJsonLinearRingCoordinates<TCoordinates>, params GeoJsonLinearRingCoordinates<TCoordinates>[])

Creates the coordinates of a GeoJson Polygon object.

public static GeoJsonPolygonCoordinates<TCoordinates> PolygonCoordinates<TCoordinates>(GeoJsonLinearRingCoordinates<TCoordinates> exterior, params GeoJsonLinearRingCoordinates<TCoordinates>[] holes) where TCoordinates : GeoJsonCoordinates

Parameters

exterior GeoJsonLinearRingCoordinates<TCoordinates>

The exterior.

holes GeoJsonLinearRingCoordinates<TCoordinates>[]

The holes.

Returns

GeoJsonPolygonCoordinates<TCoordinates>

The coordinates of a GeoJson Polygon object.

Type Parameters

TCoordinates

The type of the coordinates.