Geo

GeoJSON types supported by MongoDB.

Our goal is to represent the GeoJSON RFC, as it is implemented by MongoDB. MongoDB does not support large sections of the RFC, so we won't support them either.

GeoJSON operators calculate on a sphere, using the WGS84 reference system.

External resources

Inheritors

Types

Link copied to clipboard
data class CoordinateReferenceSystem(val name: String)

A coordinate reference system (CRS) represents the way points are projected.

Link copied to clipboard

A GeoJSON geometry collection.

Link copied to clipboard
value class Latitude(val degrees: Double)

A latitude.

Link copied to clipboard

A GeoJSON line string.

Link copied to clipboard
value class Longitude(val degrees: Double)

A longitude.

Link copied to clipboard

A GeoJSON MultiLineString.

Link copied to clipboard

A GeoJSON MultiPoint.

Link copied to clipboard

A GeoJSON MultiPolygon.

Link copied to clipboard

A GeoJSON point.

Link copied to clipboard

A GeoJSON polygon.

Link copied to clipboard

Functions

Link copied to clipboard
abstract override fun toString(): String

JSON representation of this object as a BSON document.

Link copied to clipboard
abstract fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.