pointOnFeature

fun pointOnFeature(geometry: Geometry): Point

Takes a Feature or FeatureCollection and returns a Point guaranteed to be on the surface of the feature.

  • Given a Polygon, the point will be in the area of the polygon

  • Given a LineString, the point will be along the string

  • Given a Point, the point will the same as the input

Return

a point on the surface of input

Parameters

geometry

any Geometry