Transforms the geometry of a feature to a specific projection.
Usage | Returns | Feature.transform(proj, maxError) | Feature |
Argument | Type | Details | this: feature | Element | The feature the geometry of which is being converted. |
proj | Projection, optional | The 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. |
maxError | ErrorMargin, default: null | The maximum projection error. |