Earth Engine presenta
niveles de cuotas no comerciales para proteger los recursos de procesamiento compartidos y garantizar un rendimiento confiable para todos. Los proyectos no comerciales usan el nivel de la comunidad de forma predeterminada, aunque puedes cambiar el nivel de un proyecto en cualquier momento.
Google utiliza tecnología de IA para traducir contenido a tu idioma preferido. Las traducciones realizadas con IA pueden contener errores.
ee.Geometry.Rectangle.type
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Devuelve el tipo GeoJSON de la geometría.
| Uso | Muestra |
|---|
Rectangle.type() | String |
| Argumento | Tipo | Detalles |
|---|
esta: geometry | Geometría | |
Ejemplos
Editor de código (JavaScript)
// Define a Rectangle object.
var rectangle = ee.Geometry.Rectangle(-122.09, 37.42, -122.08, 37.43);
// Apply the type method to the Rectangle object.
var rectangleType = rectangle.type();
// Print the result to the console.
print('rectangle.type(...) =', rectangleType);
// Display relevant geometries on the map.
Map.setCenter(-122.085, 37.422, 15);
Map.addLayer(rectangle,
{'color': 'black'},
'Geometry [black]: rectangle');
Configuración de Python
Consulta la página
Entorno de Python para obtener información sobre la API de Python y el uso de geemap para el desarrollo interactivo.
import ee
import geemap.core as geemap
Colab (Python)
# Define a Rectangle object.
rectangle = ee.Geometry.Rectangle(-122.09, 37.42, -122.08, 37.43)
# Apply the type method to the Rectangle object.
rectangle_type = rectangle.type()
# Print the result.
display('rectangle.type(...) =', rectangle_type)
# Display relevant geometries on the map.
m = geemap.Map()
m.set_center(-122.085, 37.422, 15)
m.add_layer(rectangle, {'color': 'black'}, 'Geometry [black]: rectangle')
m
[null,null,["Última actualización: 2025-07-26 (UTC)"],[],["The `type()` method returns the GeoJSON type of a geometry object as a string. It is applied to a geometry object, such as a `Rectangle`. The method takes a geometry object as an argument. When executed on a defined rectangle, `rectangle.type()` returns the string representing its type. Example code demonstrates defining a rectangle, calling the `type()` method, and printing or displaying the type, which represents the geometric figure.\n"]]