ee.Geometry.coveringGrid

এই জ্যামিতিকে আবৃত করে এমন বৈশিষ্ট্যগুলোর একটি সংগ্রহ ফেরত দেয়, যেখানে প্রতিটি বৈশিষ্ট্য হলো প্রদত্ত প্রজেকশন দ্বারা সংজ্ঞায়িত গ্রিডের একটি আয়তক্ষেত্র।

ব্যবহার ফেরত
Geometry. coveringGrid (proj, scale ) ফিচার কালেকশন
যুক্তি প্রকার বিস্তারিত
এই: geometry জ্যামিতি এর ফলে সেই গ্রিড সেলগুলো পাওয়া যায় যেগুলো এই অঞ্চলকে ছেদ করে।
proj প্রক্ষেপণ যে প্রজেকশনে গ্রিডটি তৈরি করা হবে। প্রতিটি গ্রিড সেলের জন্য একটি ফিচার তৈরি করা হয় যা 'জ্যামিতি'-কে ছেদ করে, যেখানে সেলের কোণাগুলো প্রজেকশনে পূর্ণসংখ্যা-মানের অবস্থানে থাকে। যদি প্রজেকশনটি মিটারে স্কেল করা হয়, তাহলে বিন্দুগুলো প্রকৃত স্কেলের বিন্দুতে সেই আকারের একটি গ্রিডে থাকবে।
scale ফ্লোট, ডিফল্ট: নাল প্রজেকশনের স্কেল প্রদান করা থাকলে, এটি তা বাতিল করে দেয়। প্রজেকশনটি আগে থেকে স্কেল করা না থাকলে এটির প্রয়োজন হতে পারে।

উদাহরণ

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

// Define the coordinate reference system (CRS) to be used for grid alignment.
// WGS 84 / UTM zone 36S.
var epsg = 'EPSG:32736';

// Create a point geometry to serve as the center for the analysis.
var point = ee.Geometry.Point(31.6, -8.54);

Map.addLayer(point, {color: 'orange'}, 'Center');
Map.centerObject(point, 8);

// Create a circular buffer of 100,000 meters (100 km) around the point to
// define the study area.
var areaOfInterest = point.buffer(100000);
Map.addLayer(areaOfInterest, {color: 'purple'}, 'Area of interest');

// Calculate a scale value to determine the size of the grid cells.
// Use a power of 2 for best GeoTIFF tiling, e.g., assuming that we'll use the
// grid cell to define image export regions, 2**14 -> 16384.
var scale = Math.pow(2, 14);

// Generate a FeatureCollection of grid cells that covers the buffered area
// using the specified projection and scale.
var grid = areaOfInterest.coveringGrid({proj: epsg, scale: scale});
Map.addLayer(grid, {color: 'blue'}, 'Covering Grid', true, 0.5);

// Define the specific index string of the grid cell to be extracted.
var cellOfInterest = '18,551';
// Filter the grid collection to find the feature matching the index and
// retrieve it as an ee.Feature.
var feature =
    ee.Feature(grid.toList(10000)
                   .filter(ee.Filter.eq('system:index', cellOfInterest))
                   .get(0));
Map.addLayer(feature, {color: 'red'}, 'grid cell', true, 0.5);

// One common use of coveringGrid is to tile operations such as exports.
// This often involves iterating through grid cells on the client-side to
// submit tasks for each cell. Here we print each cell ID using evaluate().
print('Grid cell IDs:');
grid.aggregate_array('system:index').evaluate(function(cellIds) {
  cellIds.forEach(function(cellId) {
    print(cellId);
  });
});