Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
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ề true nếu và chỉ nếu hình học của một đối tượng chứa hình học của một đối tượng khác.
Cách sử dụng
Giá trị trả về
Feature.contains(right, maxError, proj)
Boolean
Đối số
Loại
Thông tin chi tiết
this: left
Phần tử
Đối tượng chứa hình học được dùng làm toán hạng bên trái của thao tác.
right
Phần tử
Đối tượng chứa hình học được dùng làm toán hạng bên phải của thao tác.
maxError
ErrorMargin, mặc định: null
Lượng lỗi tối đa được chấp nhận khi thực hiện bất kỳ phép chiếu lại cần thiết nào.
proj
Phép chiếu, mặc định: null
Phép chiếu để thực hiện thao tác. Nếu không được chỉ định, thao tác sẽ được thực hiện trong hệ toạ độ cầu và khoảng cách tuyến tính sẽ tính bằng mét trên quả cầu.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["This function checks if one feature's geometry completely encloses another feature's geometry."],["It returns true only if the 'left' feature's geometry fully contains the 'right' feature's geometry, otherwise it returns false."],["The comparison can be customized by specifying a maximum error tolerance (`maxError`) and a projection (`proj`) for the operation."]]],["The `Feature.contains()` method checks if one feature's geometry encompasses another's. It takes a `right` feature as input, and optionally `maxError` for reprojection tolerance, and `proj` for the desired projection. The method returns a Boolean value: `true` if the `left` feature's geometry contains the `right` feature's geometry, `false` otherwise. If no projection is specified, calculations are performed spherically, with linear distances measured in meters.\n"]]