ee.Geometry.evaluate

यह सर्वर से इस ऑब्जेक्ट की वैल्यू को एसिंक्रोनस तरीके से हासिल करता है और उसे दिए गए कॉलबैक फ़ंक्शन को पास करता है.

इस्तेमालरिटर्न
Geometry.evaluate(callback)
आर्ग्यूमेंटटाइपविवरण
यह: computedobjectComputedObjectComputedObject इंस्टेंस.
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 API के बारे में जानकारी पाने और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के लिए, Python एनवायरमेंट पेज देखें.

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.