mapGeometry

fun <G1 : Geometry?, G2 : Geometry?, P> Feature<G1, P>.mapGeometry(transform: (G1) -> G2): Feature<G2, P>(source)

Returns a Feature containing a Geometry by applying the given transform function to the original geometry. The original feature's properties are preserved in the result.

If the original feature has a Feature.bbox, then the resulting feature has a new bbox computed using the new geometry, if present.


Returns a FeatureCollection by applying mapGeometry to each feature in this collection.