Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum 15 April 2025 harus memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mengambil nilai objek ini secara asinkron dari server dan meneruskannya ke fungsi callback yang disediakan.
Penggunaan
Hasil
Date.evaluate(callback)
Argumen
Jenis
Detail
ini: computedobject
ComputedObject
Instance ComputedObject.
callback
Fungsi
Fungsi formulir function(success, failure), yang dipanggil saat server menampilkan jawaban. Jika permintaan berhasil, argumen keberhasilan berisi hasil yang dievaluasi. Jika permintaan gagal, argumen kegagalan akan berisi pesan error.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[[["`Date.evaluate()` retrieves the value of a server-side `ee.Date` object and passes it to a callback function."],["The callback function receives the evaluated result as an object with `type` and `value` keys, where `value` represents milliseconds since the Unix epoch."],["Excessive use of `evaluate` can impact performance due to data transfer from Earth Engine servers to the client."],["The Python client library uses `getInfo()` instead of `evaluate` for asynchronous evaluation of `ee.Date` objects."]]],["The `Date.evaluate(callback)` method asynchronously retrieves a ComputedObject's value from the server. It uses a callback function with `success` and `failure` arguments to handle the server's response. If successful, `success` provides the evaluated result; otherwise, `failure` gives an error message. The JavaScript example transfers a server-side date to the client, revealing its \"type\" and \"value\" (milliseconds since Unix epoch). Python uses `ee.Date.getInfo()` for similar functionality.\n"]]