nitrite_spatial library

A library for using spatial data in Nitrite database.

Classes

Center
A center point or coordinate.
GeometrySerializer
Serializes and deserializes Geometry objects to and from strings.
GeoPoint
A geographic point expressed as latitude/longitude (WGS84 degrees).
KNearestFilter
Internal index-scan marker for a K-nearest query. The actual K selection is performed by the spatial index (it queries the R-tree's nearest-neighbour search), so this filter just carries the query parameters.
SpatialFilter
The abstract base class for all spatial filters in Nitrite.
SpatialFluentFilter
A fluent API for creating spatial filters.
SpatialModule
A module that provides spatial indexing capability to Nitrite. This module provides a spatial index on a single field of a document.

Constants

spatialIndex → const String
Spatial index type.

Functions

geometryEquals(Geometry? geometry1, Geometry? geometry2) bool
Compares two Geometry objects for equality.
where(String field) SpatialFluentFilter
Creates a fluent API for creating spatial filters.