公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.createAssetHome
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
尝试为当前用户创建主根文件夹(例如“users/joe”)。如果用户已有主根文件夹或所请求的 ID 不可用,则会导致错误。
用法 | 返回 |
---|
ee.data.createAssetHome(requestedId, callback) | |
参数 | 类型 | 详细信息 |
---|
requestedId | 字符串 | 主文件夹的请求 ID(例如“users/joe”)。
|
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCreates a home root folder (like "users/joe") for the current user if one doesn't already exist.\u003c/p\u003e\n"],["\u003cp\u003eReturns an error if a home folder for the user already exists or the requested ID is taken.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.createAssetHome()\u003c/code\u003e function, accepting a requested ID and an optional callback.\u003c/p\u003e\n"],["\u003cp\u003eWhen a callback is not provided, the function execution becomes synchronous.\u003c/p\u003e\n"]]],[],null,["# ee.data.createAssetHome\n\n\u003cbr /\u003e\n\nAttempts to create a home root folder (e.g. \"users/joe\") for the current user. This results in an error if the user already has a home root folder or the requested ID is unavailable.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------|---------|\n| `ee.data.createAssetHome(requestedId, `*callback*`)` | |\n\n| Argument | Type | Details |\n|---------------|--------------------|------------------------------------------------------------------------|\n| `requestedId` | String | The requested ID of the home folder (e.g. \"users/joe\"). |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]