center

fun center(feature: Feature): Point

Takes any kind of Feature and returns the center point. It will create a BoundingBox around the given Feature and calculates the center point of it.

Return

A Point holding the center coordinates

Parameters

feature

the feature to find the center for


fun center(geometry: Geometry): Point

It overloads the center(feature: Feature) method.

Parameters

geometry

the Geometry to find the center for