mapProperties

fun <G : Geometry?, P1, P2> Feature<G, P1>.mapProperties(transform: (P1) -> P2): Feature<G, P2>(source)

Transforms the properties of a Feature using the provided transform function.

Return

A new Feature with the same geometry and transformed properties.

Parameters

transform

Function that converts properties from type P1 to type P2.


Transforms the properties of all features in a FeatureCollection using the provided transform function.

Return

A new FeatureCollection with the same geometries and transformed properties.

Parameters

transform

Function that converts properties from type P1 to type P2.