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.
Đố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.
distance
Số thực dấu phẩy động
Ngưỡng khoảng cách. Nếu bạn chỉ định một phép chiếu, thì khoảng cách sẽ tính bằng đơn vị của hệ toạ độ được chiếu đó, nếu không thì khoảng cách sẽ tính bằng mét.
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."],[[["`withinDistance` determines if two geographic features are within a specified distance of each other, returning true if they are and false otherwise."],["The distance threshold can be defined in meters or in the units of a given projected coordinate system."],["This function considers the geometries of the features and can handle reprojection with a specified error margin if necessary."]]],["The core function determines if two feature geometries are within a specified distance. It takes two features (`left`, `right`) and a `distance` (in meters or specified projection units) as input, returning a Boolean. Optional arguments include `maxError` for reprojection tolerance and `proj` to define the projection. The operation checks if `left` is within the given `distance` of `right`, considering the provided projection or defaulting to a spherical coordinate system.\n"]]