Transforms the geometry to a specific projection.

BBox.transform(proj, maxError)Geometry
this: geometryGeometry

The geometry to reproject.

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.