ee.Geometry.BBox
Constructs a rectangle whose edges are lines of latitude and longitude.
The result is a planar rectangle in EPSG:4326.
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.Geometry.BBox(west, south, east, north) | Geometry.BBox |
Argument | Type | Details |
---|
west | Number | The westernmost enclosed longitude. Will be adjusted to lie in the range -180° to 180°. |
south | Number | The southernmost enclosed latitude. If less than -90°
(south pole), will be treated as -90°. |
east | Number | The easternmost enclosed longitude. |
north | Number | 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-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["Creates a rectangular geometry with edges defined by latitude and longitude coordinates, resulting in a planar rectangle in EPSG:4326 projection."],["If the longitudinal difference (east - west) is greater than or equal to 360 degrees, the longitude range is normalized to -180 to +180 degrees; otherwise, the longitudes are treated as points on a circle."],["Accepts west, south, east, and north coordinates as input to define the rectangle's boundaries."],["The south and north coordinates are clamped to -90 and +90 degrees respectively, representing the south and north poles."]]],["Creates a planar rectangle using latitude and longitude values, returning a `Geometry.BBox` in EPSG:4326. Input arguments include `west`, `south`, `east`, and `north` (longitude and latitude). Longitude values are normalized to -180 to +180 if the range exceeds 360. Longitudes are treated as a circle if not exceeding 360. Latitude values are clamped to -90 and +90 if outside of range.\n"]]