公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ui.Map.GeometryLayer.fromGeometry
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过解析 ee.Geometry 中的各个几何图形来重置图层的几何图形。
返回此几何图形层。
用法 | 返回 |
---|
GeometryLayer.fromGeometry(geometry) | ui.Map.GeometryLayer |
参数 | 类型 | 详细信息 |
---|
此:ui.map.geometrylayer | ui.Map.GeometryLayer | ui.Map.GeometryLayer 实例。 |
geometry | 几何图形 | 用于重置图层几何图形的几何图形。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eResets a GeometryLayer's geometries using an \u003ccode\u003eee.Geometry\u003c/code\u003e input, effectively redrawing the layer based on the provided geometry.\u003c/p\u003e\n"],["\u003cp\u003eReturns the modified \u003ccode\u003eui.Map.GeometryLayer\u003c/code\u003e instance, allowing for method chaining or further layer manipulations.\u003c/p\u003e\n"],["\u003cp\u003eAccepts an \u003ccode\u003eee.Geometry\u003c/code\u003e as an argument, which provides the spatial data for the layer's new geometries.\u003c/p\u003e\n"]]],[],null,["# ui.Map.GeometryLayer.fromGeometry\n\n\u003cbr /\u003e\n\nResets the layer's geometries by parsing individual geometries from an ee.Geometry.\n\n\u003cbr /\u003e\n\nReturns this geometry layer.\n\n| Usage | Returns |\n|----------------------------------------|----------------------|\n| GeometryLayer.fromGeometry`(geometry)` | ui.Map.GeometryLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|--------------------------------------------------------|\n| this: `ui.map.geometrylayer` | ui.Map.GeometryLayer | The ui.Map.GeometryLayer instance. |\n| `geometry` | Geometry | A geometry with which to reset the layer's geometries. |"]]