Earth Engine برای محافظت از منابع محاسباتی مشترک و تضمین عملکرد قابل اعتماد برای همه،
سطوح سهمیهبندی غیرتجاری را معرفی کرده است. پروژههای غیرتجاری به طور پیشفرض از سطح Community استفاده میکنند، اگرچه میتوانید سطح یک پروژه را در هر زمان تغییر دهید.
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);
});
});
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2026-05-23 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2026-05-23 بهوقت ساعت هماهنگ جهانی."],[],["The `coveringGrid` function generates a `FeatureCollection` of rectangular grid cells that intersect a given `Geometry`. It uses a specified `Projection` to define the grid, with each cell represented as a feature. The grid's scale is determined by the projection, or overridden by an optional `scale` argument. The function returns cells where their corners are located at integer-valued positions within the specified `Projection`.\n"]]