ee.data.copyAsset
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Kopiert das Asset aus „sourceId“ in „destinationId“.
Nutzung | Ausgabe |
---|
ee.data.copyAsset(sourceId, destinationId, overwrite, callback) | |
Argument | Typ | Details |
---|
sourceId | String | Die ID des zu kopierenden Assets. |
destinationId | String | Die ID des neuen Assets, das durch Kopieren erstellt wurde. |
overwrite | Boolesch, optional | Überschreibt alle vorhandenen Ziel-Asset-IDs. |
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\u003eCopies an Earth Engine asset from a source ID to a new destination ID.\u003c/p\u003e\n"],["\u003cp\u003eAllows overwriting of an existing asset at the destination ID if specified.\u003c/p\u003e\n"],["\u003cp\u003eOptionally utilizes a callback function for asynchronous execution or runs synchronously by default.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the source asset ID and the desired destination asset ID.\u003c/p\u003e\n"]]],[],null,["# ee.data.copyAsset\n\n\u003cbr /\u003e\n\nCopies the asset from sourceId into destinationId.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------|---------|\n| `ee.data.copyAsset(sourceId, destinationId, `*overwrite* `, `*callback*`)` | |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `sourceId` | String | The ID of the asset to copy. |\n| `destinationId` | String | The ID of the new asset created by copying. |\n| `overwrite` | Boolean, optional | Overwrite any existing destination asset ID. |\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. |"]]