Table of Contents

Class GeoJson

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

A static class containing helper methods to create GeoJson objects.

public static class GeoJson
Inheritance
GeoJson
Inherited Members

Methods

BoundingBox<TCoordinates>(TCoordinates, TCoordinates)

Creates a GeoJson bounding box.

FeatureCollection<TCoordinates>(params GeoJsonFeature<TCoordinates>[])

Creates a GeoJson FeatureCollection object.

FeatureCollection<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params GeoJsonFeature<TCoordinates>[])

Creates a GeoJson FeatureCollection object.

Feature<TCoordinates>(GeoJsonFeatureArgs<TCoordinates>, GeoJsonGeometry<TCoordinates>)

Creates a GeoJson Feature object.

Feature<TCoordinates>(GeoJsonGeometry<TCoordinates>)

Creates a GeoJson Feature object.

Geographic(double, double)

Creates a GeoJson 2D geographic position (longitude, latitude).

Geographic(double, double, double)

Creates a GeoJson 3D geographic position (longitude, latitude, altitude).

GeometryCollection<TCoordinates>(params GeoJsonGeometry<TCoordinates>[])

Creates a GeoJson GeometryCollection object.

GeometryCollection<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params GeoJsonGeometry<TCoordinates>[])

Creates a GeoJson GeometryCollection object.

LineStringCoordinates<TCoordinates>(params TCoordinates[])

Creates the coordinates of a GeoJson LineString.

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

Creates a GeoJson LineString object.

LineString<TCoordinates>(params TCoordinates[])

Creates a GeoJson LineString object.

LinearRingCoordinates<TCoordinates>(params TCoordinates[])

Creates the coordinates of a GeoJson linear ring.

MultiLineString<TCoordinates>(params GeoJsonLineStringCoordinates<TCoordinates>[])

Creates a GeoJson MultiLineString object.

MultiLineString<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, params GeoJsonLineStringCoordinates<TCoordinates>[])

Creates a GeoJson MultiLineString object.

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

Creates a GeoJson MultiPoint object.

MultiPoint<TCoordinates>(params TCoordinates[])

Creates a GeoJson MultiPoint object.

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

Creates a GeoJson MultiPolygon object.

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

Creates a GeoJson MultiPolygon object.

Point<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, TCoordinates)

Creates a GeoJson Point object.

Point<TCoordinates>(TCoordinates)

Creates a GeoJson Point object.

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

Creates the coordinates of a GeoJson Polygon object.

PolygonCoordinates<TCoordinates>(params TCoordinates[])

Creates the coordinates of a GeoJson Polygon object.

Polygon<TCoordinates>(GeoJsonObjectArgs<TCoordinates>, GeoJsonPolygonCoordinates<TCoordinates>)

Creates a GeoJson Polygon object.

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

Creates a GeoJson Polygon object.

Polygon<TCoordinates>(GeoJsonPolygonCoordinates<TCoordinates>)

Creates a GeoJson Polygon object.

Polygon<TCoordinates>(params TCoordinates[])

Creates a GeoJson Polygon object.

Position(double, double)

Creates a GeoJson 2D position (x, y).

Position(double, double, double)

Creates a GeoJson 3D position (x, y, z).

Projected(double, double)

Creates a GeoJson 2D projected position (easting, northing).

Projected(double, double, double)

Creates a GeoJson 3D projected position (easting, northing, altitude).