Package-level declarations

Functions

Link copied to clipboard
fun <T : Geometry> cleanCoordinates(geometry: T): T

Removes redundant coordinates from any GeoJSON Geometry.

Link copied to clipboard
inline fun <T : Geometry> flip(geometry: T): T

Takes input Geometry and flips all of their coordinates from [longitude, latitude] to [latitude, longitude].

fun flip(featureCollection: FeatureCollection): FeatureCollection
Link copied to clipboard
inline fun <T : Geometry> rewind(geometry: T, reverse: Boolean = false): T

Rewind LineString, MultiLineString, Polygon or MultiPolygon outer ring counterclockwise and inner rings clockwise (Uses Shoelace Formula). Point and MultiPoint geometries are not affected.

fun rewind(featureCollection: FeatureCollection, reverse: Boolean = false): FeatureCollection
fun <T : Geometry> rewind(feature: Feature<T>, reverse: Boolean = false): Feature<T>