ee.Geometry.evaluate

সার্ভার থেকে এই অবজেক্টের মান অ্যাসিঙ্ক্রোনাসভাবে রিট্রিভ করে এবং প্রদত্ত কলব্যাক ফাংশনে পাস করে।

ব্যবহাররিটার্ন
Geometry.evaluate(callback)
আর্গুমেন্টধরনবিবরণ
এটি: computedobjectComputedObjectComputedObject ইনস্ট্যান্স।
callbackফাংশনfunction(success, failure) ফর্মের একটি ফাংশন, সার্ভার উত্তর দিলে কল করা হয়। অনুরোধ সফল হলে, মূল্যায়ন করা ফলাফল 'সফল' আর্গুমেন্টে থাকে। অনুরোধটি ব্যর্থ হলে, ব্যর্থতার আর্গুমেন্টে একটি ত্রুটি মেসেজ থাকবে।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// 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.