ee.Feature.bounds
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 đối tượng chứa hộp ranh giới của hình học của một đối tượng nhất định.
Cách sử dụng | Giá trị trả về |
---|
Feature.bounds(maxError, proj) | Tính năng |
Đối số | Loại | Thông tin chi tiết |
---|
this: feature | Phần tử | Đối tượng mà giới hạn của đối tượng đó đang được tính toán. |
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 | Nếu được chỉ định, kết quả sẽ nằm trong phép chiếu này. Nếu không, giá trị này sẽ ở EPSG:4326. |
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\u003eCalculates the bounding box, which represents the minimum and maximum coordinates, of a given geographical feature.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting bounding box can be optionally reprojected to a specified coordinate system (like EPSG:4326) with a defined error margin.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFeature.bounds()\u003c/code\u003e function takes the feature, an optional error margin for reprojection, and an optional target projection as inputs.\u003c/p\u003e\n"]]],["The `Feature.bounds()` method calculates and returns a new feature representing the bounding box of an input feature's geometry. It accepts optional arguments `maxError` to control reprojection accuracy and `proj` to specify the desired output projection (defaulting to EPSG:4326). The method operates on a given feature and produces a bounding box feature, accommodating potential reprojection if requested. The input feature can be any element.\n"],null,["# ee.Feature.bounds\n\nReturns a feature containing the bounding box of the geometry of a given feature.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------|---------|\n| Feature.bounds`(`*maxError* `, `*proj*`)` | Feature |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|-----------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature the bound of which is being calculated. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | If specified, the result will be in this projection. Otherwise it will be in EPSG:4326. |"]]