ee.Geometry.evaluate

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

ব্যবহার রিটার্নস
Geometry. evaluate (callback)
যুক্তি টাইপ বিস্তারিত
এই: computedobject কম্পিউটেড অবজেক্ট ComputedObject উদাহরণ.
callback ফাংশন ফর্ম ফাংশনের একটি ফাংশন (সফলতা, ব্যর্থতা), যখন সার্ভার উত্তর দেয় তখন বলা হয়। অনুরোধ সফল হলে, সাফল্যের যুক্তিতে মূল্যায়ন করা ফলাফল থাকে। অনুরোধ ব্যর্থ হলে, ব্যর্থতার যুক্তিতে একটি ত্রুটি বার্তা থাকবে।

উদাহরণ

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

// 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);

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# The Earth Engine Python client library does not have an evaluate method for
# asynchronous evaluation of ee.Geometry objects.
# Use ee.Geometry.getInfo() instead.