قدّمت Earth Engine
فئات حصص غير تجارية لحماية موارد الحوسبة المشتركة وضمان أداء موثوق للجميع. تستخدم المشاريع غير التجارية "فئة المجتمع" تلقائيًا، ولكن يمكنك تغيير فئة المشروع في أي وقت.
تستخدم Google تكنولوجيا الذكاء الاصطناعي لترجمة المحتوى إلى لغتك المفضّلة، وقد تتضمّن بعض الأخطاء.
ee.Geometry.evaluate
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تسترد هذه الدالة قيمة هذا العنصر من الخادم بشكل غير متزامن وتمرّرها إلى دالّة رد الاتصال المقدَّمة.
| الاستخدام | المرتجعات |
|---|
Geometry.evaluate(callback) | |
| الوسيطة | النوع | التفاصيل |
|---|
هذا: computedobject | ComputedObject | مثيل ComputedObject |
callback | الوظيفة | دالة من دالة النموذج (نجاح، فشل)، يتم استدعاؤها عندما يعرض الخادم إجابة. إذا نجح الطلب، ستحتوي وسيطة النجاح على النتيجة التي تم تقييمها. إذا تعذّر تنفيذ الطلب، ستتضمّن وسيطة تعذُّر التنفيذ رسالة خطأ. |
أمثلة
أداة تعديل الرموز (JavaScript)
// Define a callback function that prints a GeoJSON string.
var printGeoJSONString = function(geometry) {
geometry = ee.Geometry(geometry);
print(geometry.toGeoJSONString());
};
// Create a simple computed geometry.
var computedGeometry = ee.Geometry.Point(0, 0).buffer(10);
// Evaluate the callback function that asynchronously retrieves and prints
// the GeoJSON string representation of computed geometry.
computedGeometry.evaluate(printGeoJSONString);
إعداد Python
يُرجى الاطّلاع على صفحة
بيئة Python للحصول على معلومات حول واجهة برمجة التطبيقات Python API واستخدام geemap للتطوير التفاعلي.
import ee
import geemap.core as geemap
Colab (Python)
# The Earth Engine Python client library does not have an evaluate method for
# asynchronous evaluation of ee.Geometry objects.
# Use ee.Geometry.getInfo() instead.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)"],[],["The `evaluate` method asynchronously retrieves a `ComputedObject`'s value from the server and provides it to a callback function. The callback receives a success or failure argument, with the result or error message, respectively. The example in javascript shows how it is used with a `GeoJSON` string to display the result. In python, there is not an `evaluate` method, instead you have to use the `getInfo()` method.\n"]]