公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Geometry.LinearRing.transform
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将几何图形转换为特定投影。
用法 | 返回 |
---|
LinearRing.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\u003e\u003ccode\u003etransform()\u003c/code\u003e method reprojects a given geometry to a specified projection, defaulting to EPSG:4326 if no target projection is provided.\u003c/p\u003e\n"],["\u003cp\u003eWhen the target projection has a geographic CRS, the geometry's edges are treated as geodesics, otherwise as straight lines within the projection.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a maximum allowable projection error using the \u003ccode\u003emaxError\u003c/code\u003e argument.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns a new Geometry object representing the transformed geometry.\u003c/p\u003e\n"]]],["The `transform` function reprojects a geometry to a specified projection. It accepts the geometry itself, the target projection (`proj`), and an optional `maxError` for projection accuracy. The `proj` defaults to EPSG:4326 and determines whether geometry edges are treated as geodesics or straight lines. The function returns the transformed geometry, modifying its coordinate system.\n"],null,["# ee.Geometry.LinearRing.transform\n\nTransforms the geometry to a specific projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------|----------|\n| LinearRing.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. |"]]