ee.Algorithms.ProjectionTransform
Transforms the geometry of a feature to a specific projection.
Usage | Returns |
---|
ee.Algorithms.ProjectionTransform(feature, proj, maxError) | Feature |
Argument | Type | Details |
---|
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["`ProjectionTransform` changes the projection of a feature's geometry to a specified target projection, defaulting to EPSG:4326."],["If the target projection is geographic, the geometry's edges are treated as geodesics; otherwise, they are considered straight lines within the projection."],["Users can define a maximum allowable projection error using the `maxError` parameter."]]],["Transforms a feature's geometry to a specified projection. The function `ee.Algorithms.ProjectionTransform` takes a `feature`, a target `proj`ection (defaults to EPSG:4326), and an optional `maxError` margin. The `proj`ection determines if geometry edges are geodesic or straight lines. The input `feature`'s geometry is converted, and the transformed `feature` is returned. The `maxError` sets the tolerance for the projection's accuracy.\n"]]