公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Feature.transform
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将要素的几何图形转换为特定投影。
用法 | 返回 |
---|
Feature.transform(proj, maxError) | 功能 |
参数 | 类型 | 详细信息 |
---|
此:feature | 元素 | 要转换其几何图形的地图项。 |
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\u003eTransforms the geometry of a given feature to a new projection, altering its spatial representation.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eFeature.transform()\u003c/code\u003e method, accepting the target projection and an optional maximum error parameter.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to the EPSG:4326 projection (WGS 84) if a target projection is not specified.\u003c/p\u003e\n"],["\u003cp\u003eInterprets geometry edges as geodesics for geographic CRS projections and as straight lines for projected CRS projections.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.transform\n\nTransforms the geometry of a feature to a specific projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------|---------|\n| Feature.transform`(`*proj* `, `*maxError*`)` | Feature |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature the geometry of which is being converted. |\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. |"]]