ee.Feature.bounds
Returns a feature containing the bounding box of the geometry of a given feature.
Usage | Returns |
---|
Feature.bounds(maxError, proj) | Feature |
Argument | Type | Details |
---|
this: feature | Element | The feature the bound of which is being calculated. |
maxError | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |
proj | Projection, default: null | If specified, the result will be in this projection. Otherwise it will be in EPSG:4326. |
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."],[[["Calculates the bounding box, which represents the minimum and maximum coordinates, of a given geographical feature."],["The resulting bounding box can be optionally reprojected to a specified coordinate system (like EPSG:4326) with a defined error margin."],["The `Feature.bounds()` function takes the feature, an optional error margin for reprojection, and an optional target projection as inputs."]]],["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"]]