Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.data.getAsset
Stay organized with collections
Save and categorize content based on your preferences.
Load info for an asset, given an asset id.
Returns the value call results, or null if a callback is specified.
Usage | Returns | ee.data.getAsset(id, callback) | Object |
Argument | Type | Details | id | String | The asset to be retrieved. |
callback | Function, optional | An optional callback. If not supplied, the call is made synchronously. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eee.data.getAsset()\u003c/code\u003e loads information for an Earth Engine asset using its ID.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns asset details as an object or nothing if a callback function is provided.\u003c/p\u003e\n"],["\u003cp\u003eAn optional callback function can be used for asynchronous execution, otherwise, the call is synchronous.\u003c/p\u003e\n"]]],[],null,["# ee.data.getAsset\n\n\u003cbr /\u003e\n\nLoad info for an asset, given an asset id.\n\n\u003cbr /\u003e\n\nReturns the value call results, or null if a callback is specified.\n\n| Usage | Returns |\n|--------------------------------------|---------|\n| `ee.data.getAsset(id, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|------------|--------------------|------------------------------------------------------------------------|\n| `id` | String | The asset to be retrieved. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]