ee.Geometry.MultiPoint.bounds

Returns the bounding rectangle of the geometry.

UsageReturns
MultiPoint.bounds(maxError, proj)Geometry
ArgumentTypeDetails
this: geometryGeometry

Return the bounding box of this geometry.

maxErrorErrorMargin, default: null

The maximum amount of error tolerated when performing any necessary reprojection.

projProjection, default: null

If specified, the result will be in this projection. Otherwise it will be in WGS84.

Examples

Code Editor (JavaScript)

// Define a MultiPoint object.
var multiPoint = ee.Geometry.MultiPoint([[-122.082, 37.420], [-122.081, 37.426]]);

// Apply the bounds method to the MultiPoint object.
var multiPointBounds = multiPoint.bounds();

// Print the result to the console.
print('multiPoint.bounds(...) =', multiPointBounds);

// Display relevant geometries on the map.
Map.setCenter(-122.085, 37.422, 15);
Map.addLayer(multiPoint,
             {'color': 'black'},
             'Geometry [black]: multiPoint');
Map.addLayer(multiPointBounds,
             {'color': 'red'},
             'Result [red]: multiPoint.bounds');