Package-level declarations

Types

Link copied to clipboard
@Serializable(with = BoundingBoxSerializer::class)
class BoundingBox(val coordinates: DoubleArray)

Represents an area bounded by a northeast and southwest.

Link copied to clipboard
Link copied to clipboard
@Serializable(with = FeatureSerializer::class)
data class Feature<out T : Geometry>(val geometry: T?, val properties: Map<String, Any> = emptyMap(), val id: String? = null, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : GeoJson

A feature object represents a spatially bounded thing.

Link copied to clipboard
@Serializable(with = FeatureCollectionSerializer::class)
data class FeatureCollection(val features: List<Feature<Geometry>> = emptyList(), val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Collection<Feature<Geometry>> , GeoJson

A FeatureCollection object is a collection of Feature objects. This class implements the Collection interface and can be used as a Collection directly. The list of features contained in this collection are also accessible through the features property.

Link copied to clipboard
sealed interface GeoJson

A GeoJSON object represents a Geometry, Feature, or collection of Features.

Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
sealed class Geometry : GeoJson
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class GeometryCollection @JvmOverloads constructor(val geometries: List<Geometry>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry, Collection<Geometry>
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class LineString @JvmOverloads constructor(val coordinates: List<Position>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class MultiLineString @JvmOverloads constructor(val coordinates: List<List<Position>>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class MultiPoint @JvmOverloads constructor(val coordinates: List<Position>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap(), val points: List<Point> = coordinates.map { Point(it) }) : Geometry
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class MultiPolygon @JvmOverloads constructor(val coordinates: List<List<List<Position>>>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class Point @JvmOverloads constructor(val coordinates: Position, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry
Link copied to clipboard
@Serializable(with = GeometrySerializer::class)
data class Polygon @JvmOverloads constructor(val coordinates: List<List<Position>>, val bbox: BoundingBox? = null, val foreignMembers: Map<String, Any> = emptyMap()) : Geometry
Link copied to clipboard
@Serializable(with = PositionSerializer::class)
class Position(val coordinates: DoubleArray)

A position is the fundamental geometry construct. Positions are represented by Positions in Spatial K

Properties