ee.Feature.setGeometry

Returns the feature, with the geometry replaced by the specified geometry.

UsageReturns
Feature.setGeometry(geometry)Element
ArgumentTypeDetails
this: featureElement

The feature on which to set the geometry.

geometryGeometry, default: null

The geometry to set.