ee.data.renameAsset
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Benennt das Asset von „sourceId“ in „destinationId“ um.
Nutzung | Ausgabe |
---|
ee.data.renameAsset(sourceId, destinationId, callback) | |
Argument | Typ | Details |
---|
sourceId | String | Die ID des Assets, das umbenannt werden soll. |
destinationId | String | Die neue ID des Assets. |
callback | Funktion (optional) | Ein optionaler Callback. Wenn nicht angegeben, erfolgt der Aufruf synchron. Dem Callback wird ein leeres Objekt und gegebenenfalls eine Fehlermeldung übergeben. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eRenames Earth Engine assets from their original ID to a new, specified ID.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.renameAsset()\u003c/code\u003e function, requiring the source asset ID and the desired destination ID.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, a callback function can be included for asynchronous execution and error handling.\u003c/p\u003e\n"]]],[],null,["# ee.data.renameAsset\n\n\u003cbr /\u003e\n\nRenames the asset from sourceId to destinationId.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------|---------|\n| `ee.data.renameAsset(sourceId, destinationId, `*callback*`)` | |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `sourceId` | String | The ID of the asset to rename. |\n| `destinationId` | String | The new ID of the asset. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object and an error message, if any. |"]]