ee.Algorithms.GeometryConstructors.BBox
Constructs a rectangle whose edges are lines of latitude and longitude.
The result is a planar WGS84 rectangle.
If (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).
Usage | Returns |
---|
ee.Algorithms.GeometryConstructors.BBox(west, south, east, north) | Geometry |
Argument | Type | Details |
---|
west | Float | The westernmost enclosed longitude. Will be adjusted to lie in the range -180 to 180. |
south | Float | The southernmost enclosed latitude. If less than -90 (south pole), will be treated as -90. |
east | Float | The easternmost enclosed longitude. |
north | Float | The northernmost enclosed latitude. If greater than +90 (north pole), will be treated as +90. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Creates a rectangular geometry using latitude and longitude coordinates, representing a planar area in WGS84."],["The longitude range is normalized to -180 to +180 if it spans 360 degrees or more; otherwise, it's treated as a circular range."],["Input coordinates for the bounding box include west, south, east, and north, with adjustments made for values exceeding latitude limits."]]],["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"]]