ee.Feature.setGeometry

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

UsageReturns
Feature.setGeometry(geometry)Element
ArgumentTypeDetails
this: featureElementThe feature on which to set the geometry.
geometryGeometry, default: nullThe geometry to set.