ee.Algorithms.GeometryConstructors.BBox
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.
Dựng một hình chữ nhật có các cạnh là đường vĩ độ và kinh độ.
Kết quả là một hình chữ nhật phẳng WGS84.
Nếu (đông – tây) ≥ 360 thì dải kinh độ sẽ được chuẩn hoá thành -180 đến +180; nếu không, dải kinh độ sẽ được coi là chỉ định các điểm trên một vòng tròn (ví dụ: đông có thể nhỏ hơn tây về mặt số học).
Cách sử dụng | Giá trị trả về |
---|
ee.Algorithms.GeometryConstructors.BBox(west, south, east, north) | Hình học |
Đối số | Loại | Thông tin chi tiết |
---|
west | Số thực dấu phẩy động | Kinh độ khép kín ở cực tây. Sẽ được điều chỉnh để nằm trong khoảng từ -180 đến 180. |
south | Số thực dấu phẩy động | Vĩ độ khép kín ở cực nam. Nếu nhỏ hơn -90 (cực Nam), sẽ được coi là -90. |
east | Số thực dấu phẩy động | Kinh độ khép kín ở cực đông. |
north | Số thực dấu phẩy động | Vĩ độ khép kín ở cực bắc. Nếu lớn hơn +90 (cực bắc), sẽ được coi là +90. |
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\u003eCreates a rectangular geometry using latitude and longitude coordinates, representing a planar area in WGS84.\u003c/p\u003e\n"],["\u003cp\u003eThe longitude range is normalized to -180 to +180 if it spans 360 degrees or more; otherwise, it's treated as a circular range.\u003c/p\u003e\n"],["\u003cp\u003eInput coordinates for the bounding box include west, south, east, and north, with adjustments made for values exceeding latitude limits.\u003c/p\u003e\n"]]],["This describes creating a WGS84 rectangle using latitude and longitude. The function `BBox` takes four float arguments: `west`, `south`, `east`, and `north`, representing the rectangle's boundaries. Longitude values are normalized to -180 to +180 if the difference between `east` and `west` is 360 or more; otherwise they define points on a circle. Latitude values are clamped between -90 and +90. The function returns a Geometry object.\n"],null,["# ee.Algorithms.GeometryConstructors.BBox\n\nConstructs a rectangle whose edges are lines of latitude and longitude.\n\n\u003cbr /\u003e\n\nThe result is a planar WGS84 rectangle.\n\nIf (east - west) ≥ 360 then the longitude range will be normalized to -180 to +180; otherwise they will be treated as designating points on a circle (e.g., east may be numerically less than west).\n\n| Usage | Returns |\n|---------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.BBox(west, south, east, north)` | Geometry |\n\n| Argument | Type | Details |\n|----------|-------|-----------------------------------------------------------------------------------------------|\n| `west` | Float | The westernmost enclosed longitude. Will be adjusted to lie in the range -180 to 180. |\n| `south` | Float | The southernmost enclosed latitude. If less than -90 (south pole), will be treated as -90. |\n| `east` | Float | The easternmost enclosed longitude. |\n| `north` | Float | The northernmost enclosed latitude. If greater than +90 (north pole), will be treated as +90. |"]]