Table of Contents

Method MultiPolygon

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

MultiPolygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params GeoJsonPolygonCoordinates<TCoordinates>[])

Creates a GeoJson MultiPolygon object.

public static GeoJsonMultiPolygon<TCoordinates> MultiPolygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates> args, params GeoJsonPolygonCoordinates<TCoordinates>[] polygons) where TCoordinates : GeoJsonCoordinates

Parameters

args GeoJsonObjectArgs<TCoordinates>

The additional args.

polygons GeoJsonPolygonCoordinates<TCoordinates>[]

The polygons.

Returns

GeoJsonMultiPolygon<TCoordinates>

A GeoJson MultiPolygon object.

Type Parameters

TCoordinates

The type of the coordinates.

MultiPolygon<TCoordinates>(params GeoJsonPolygonCoordinates<TCoordinates>[])

Creates a GeoJson MultiPolygon object.

public static GeoJsonMultiPolygon<TCoordinates> MultiPolygon<TCoordinates>(params GeoJsonPolygonCoordinates<TCoordinates>[] polygons) where TCoordinates : GeoJsonCoordinates

Parameters

polygons GeoJsonPolygonCoordinates<TCoordinates>[]

The polygons.

Returns

GeoJsonMultiPolygon<TCoordinates>

A GeoJson MultiPolygon object.

Type Parameters

TCoordinates

The type of the coordinates.