公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Image.setDefaultProjection
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设置要应用于此图片的默认投影。投影的分辨率可能会被后续操作替换。
用法 | 返回 |
---|
Image.setDefaultProjection(crs, crsTransform, scale) | 图片 |
参数 | 类型 | 详细信息 |
---|
此:image | 图片 | 要重新投影的图片。 |
crs | 投影 | 要将图片投影到的 CRS。 |
crsTransform | 列表,默认值:null | CRS 转换值列表。这是 3x2 转换矩阵的行优先顺序。此选项与 scale 选项互斥,并会替换投影上已有的任何转换。 |
scale | 浮点数,默认值:null | 如果指定了比例,则通过将指定比例值除以指定投影中一米的标称大小来缩放投影。如果未指定比例,则使用指定投影的比例。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDefine a default projection and resolution for an image, which can be modified by subsequent operations.\u003c/p\u003e\n"],["\u003cp\u003eSpecify the target Coordinate Reference System (CRS), an optional CRS transformation matrix, and an optional scale factor to adjust the projection.\u003c/p\u003e\n"],["\u003cp\u003eProviding a CRS transformation matrix overrides any existing transformations, while the scale factor adjusts the projection's scale based on the specified value and the projection's nominal meter size.\u003c/p\u003e\n"]]],[],null,["# ee.Image.setDefaultProjection\n\nSet a default projection to be applied to this image. The projection's resolution may be overridden by later operations.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------|---------|\n| Image.setDefaultProjection`(crs, `*crsTransform* `, `*scale*`)` | Image |\n\n| Argument | Type | Details |\n|----------------|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `image` | Image | The image to reproject. |\n| `crs` | Projection | The CRS to project the image to. |\n| `crsTransform` | List, default: null | The list of CRS transform values. This is a row-major ordering of the 3x2 transform matrix. This option is mutually exclusive with the scale option, and replaces any transform already on the projection. |\n| `scale` | Float, default: null | If scale is specified, then the projection is scaled by dividing the specified scale value by the nominal size of a meter in the specified projection. If scale is not specified, then the scale of the given projection will be used. |"]]