ee.Geometry.MultiPoint.isUnbounded
Returns whether the geometry is unbounded.
Usage | Returns |
---|
MultiPoint.isUnbounded() | Boolean |
Argument | Type | Details |
---|
this: geometry | Geometry | |
Examples
// Define a MultiPoint object.
var multiPoint = ee.Geometry.MultiPoint([[-122.082, 37.420], [-122.081, 37.426]]);
// Apply the isUnbounded method to the MultiPoint object.
var multiPointIsUnbounded = multiPoint.isUnbounded();
// Print the result to the console.
print('multiPoint.isUnbounded(...) =', multiPointIsUnbounded);
// Display relevant geometries on the map.
Map.setCenter(-122.085, 37.422, 15);
Map.addLayer(multiPoint,
{'color': 'black'},
'Geometry [black]: multiPoint');
Python setup
See the
Python Environment page for information on the Python API and using
geemap
for interactive development.
import ee
import geemap.core as geemap
# Define a MultiPoint object.
multipoint = ee.Geometry.MultiPoint([[-122.082, 37.420], [-122.081, 37.426]])
# Apply the isUnbounded method to the MultiPoint object.
multipoint_is_unbounded = multipoint.isUnbounded()
# Print the result.
display('multipoint.isUnbounded(...) =', multipoint_is_unbounded)
# Display relevant geometries on the map.
m = geemap.Map()
m.set_center(-122.085, 37.422, 15)
m.add_layer(multipoint, {'color': 'black'}, 'Geometry [black]: multipoint')
m
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["The `isUnbounded()` method determines if a geometry is unbounded, returning a boolean value (true if unbounded, false if bounded)."],["It is specifically designed for use with `MultiPoint` geometries in Google Earth Engine."],["The method takes the geometry as input and returns `false` indicating that `MultiPoint` geometries are always bounded."],["Examples are provided in JavaScript and Python to illustrate how to apply the `isUnbounded()` method and display results on a map."]]],["The `isUnbounded()` method, applicable to `Geometry` objects like `MultiPoint`, determines if a geometry is unbounded, returning a Boolean. It takes a `Geometry` object as input and returns `true` if the geometry is unbounded, and `false` otherwise. Examples show creating a `MultiPoint` object and applying `isUnbounded()`, printing the Boolean result, then displaying the geometry. Both JavaScript and Python code are provided.\n"]]