ee.Geometry.LinearRing.coveringGrid
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trả về một tập hợp các đối tượng bao phủ hình học này, trong đó mỗi đối tượng là một hình chữ nhật trong lưới do phép chiếu đã cho xác định.
Cách sử dụng | Giá trị trả về |
---|
LinearRing.coveringGrid(proj, scale) | FeatureCollection |
Đối số | Loại | Thông tin chi tiết |
---|
this: geometry | Hình học | Kết quả là các ô lưới giao với khu vực này. |
proj | Dự đoán | Phép chiếu để tạo lưới. Một đối tượng được tạo cho mỗi ô lưới giao với "geometry", trong đó các góc ô nằm ở vị trí có giá trị nguyên trong phép chiếu. Nếu phép chiếu được chia tỷ lệ theo mét, thì các điểm sẽ nằm trên một lưới có kích thước đó tại điểm có tỷ lệ thực. |
scale | Float, mặc định: null | Ghi đè tỷ lệ của phép chiếu (nếu có). Có thể cần thiết nếu phép chiếu chưa được điều chỉnh tỷ lệ. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eReturns a FeatureCollection of rectangular grid cells covering the input geometry.\u003c/p\u003e\n"],["\u003cp\u003eThe grid is defined by the provided projection and an optional scale parameter.\u003c/p\u003e\n"],["\u003cp\u003eEach grid cell in the FeatureCollection intersects with the input geometry.\u003c/p\u003e\n"],["\u003cp\u003eIf the projection is scaled (e.g., in meters), the grid cells will align with that scale at the projection's point of true scale.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003escale\u003c/code\u003e argument can be provided to override the projection's inherent scale if needed.\u003c/p\u003e\n"]]],[],null,["# ee.Geometry.LinearRing.coveringGrid\n\nReturns a collection of features that cover this geometry, where each feature is a rectangle in the grid defined by the given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------|-------------------|\n| LinearRing.coveringGrid`(proj, `*scale*`)` | FeatureCollection |\n\n| Argument | Type | Details |\n|------------------|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `geometry` | Geometry | The result is the grid cells that intersect with this region. |\n| `proj` | Projection | The projection in which to construct the grid. A feature is generated for each grid cell that intersects 'geometry', where cell corners are at integer-valued positions in the projection. If the projection is scaled in meters, the points will be on a grid of that size at the point of true scale. |\n| `scale` | Float, default: null | Overrides the scale of the projection, if provided. May be required if the projection isn't already scaled. |"]]