公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Geometry.Point.transform
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将几何图形转换为特定投影。
用法 | 返回 |
---|
Point.transform(proj, maxError) | 几何图形 |
参数 | 类型 | 详细信息 |
---|
此:geometry | 几何图形 | 要重新投影的几何图形。 |
proj | 投影,可选 | 目标投影。默认值为 EPSG:4326。如果此对象具有地理 CRS,则几何图形的边将解释为测地线。否则,它们将被解读为投影中的直线。 |
maxError | ErrorMargin,默认值:null | 最大投影误差。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis function transforms the input geometry's coordinates to a new projection, specified by the \u003ccode\u003eproj\u003c/code\u003e argument which defaults to EPSG:4326.\u003c/p\u003e\n"],["\u003cp\u003eWhen using a geographic CRS for the target projection, edges of the geometry are treated as geodesics on the Earth's surface, while other projections interpret edges as straight lines.\u003c/p\u003e\n"],["\u003cp\u003eUsers can control the allowed projection error using the optional \u003ccode\u003emaxError\u003c/code\u003e argument, ensuring the transformed geometry's accuracy.\u003c/p\u003e\n"],["\u003cp\u003eThe function ultimately returns a new Geometry object with the reprojected coordinates, leaving the original geometry unchanged.\u003c/p\u003e\n"]]],["The `transform` method reprojects a geometry to a specified projection. It accepts the target projection (`proj`) and an optional maximum error (`maxError`). The method operates on a `Geometry` object and returns a new `Geometry` with the transformed coordinates. If `proj` is geographic, edges are geodesics; otherwise, they are straight lines in the projection. The default projection is EPSG:4326.\n"],null,["# ee.Geometry.Point.transform\n\nTransforms the geometry to a specific projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------|----------|\n| Point.transform`(`*proj* `, `*maxError*`)` | Geometry |\n\n| Argument | Type | Details |\n|------------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `geometry` | Geometry | The geometry to reproject. |\n| `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. |\n| `maxError` | ErrorMargin, default: null | The maximum projection error. |"]]