ee.Feature.transform

Transforms the geometry of a feature to a specific projection.

UsageReturns
Feature.transform(proj, maxError, geodesic)Feature
ArgumentTypeDetails
this: featureElementThe feature the geometry of which is being converted.
projProjection, optionalThe target projection. Defaults to EPSG:4326. If this has a geographic CRS, the edges of the geometry will be interpreted as geodesics. Otherwise they will be interpreted as straight lines in the projection. This default can be overridden by the geodesic parameter.
maxErrorErrorMargin, default: nullThe maximum projection error.
geodesicBoolean, default: nullWhether to interpret edges as geodesics. If true, edges are interpreted as the shortest path on the surface of the earth. If false, edges are interpreted as straight lines in the projection. Defaults to true if the target projection is geographic, and false otherwise.