ee.Geometry.Polygon.transform
Transforms the geometry to a specific projection.
Usage | Returns |
---|
Polygon.transform(proj, maxError) | Geometry |
Argument | Type | Details |
---|
this: geometry | Geometry | The geometry to reproject. |
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."],[[["Transforms the provided geometry to a new projection, specified by the `proj` argument."],["By default, the geometry is projected to EPSG:4326 (WGS 84), treating edges as geodesics if the target projection is geographic."],["Users can specify a maximum projection error tolerance using the `maxError` parameter."],["The `transform` function returns a new Geometry object representing the transformed geometry."]]],["The `transform` function reprojects a geometry to a specified projection. It accepts the target projection (`proj`) and an optional maximum error (`maxError`). The function returns the transformed geometry. If no projection is provided, it defaults to EPSG:4326. The provided geometry's edges are interpreted as geodesics in geographic coordinate systems and as straight lines otherwise. The input `geometry` is reprojected.\n"]]