Transforms the geometry of a feature to a specific projection.

Feature.transform(proj, maxError)Feature
this: featureElement

The feature the geometry of which is being converted.

projProjection, optional

The target projection. Defaults to WGS84. 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.

maxErrorErrorMargin, default: null

The maximum projection error.