הודעה: כל הפרויקטים הלא מסחריים שנרשמו לשימוש ב-Earth Engine לפני 
15 באפריל 2025 חייבים 
לאמת את הזכאות לשימוש לא מסחרי כדי לשמור על הגישה. אם לא תאמתו את החשבון עד 26 בספטמבר 2025, יכול להיות שהגישה שלכם תושעה.
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.Geometry.type
    
    
      
    
    
      
      קל לארגן דפים בעזרת אוספים
    
    
      
      אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
מחזירה את סוג הגיאומטריה בפורמט GeoJSON.
| שימוש | החזרות | 
|---|
| Geometry.type() | מחרוזת | 
| ארגומנט | סוג | פרטים | 
|---|
| זה: geometry | גיאומטריה |  | 
  
  
  דוגמאות
  
    
  
  
    
    
  
  
  
  
    
    
    
      עורך הקוד (JavaScript)
    
    
  // Define a Geometry object.
var geometry = ee.Geometry({
  'type': 'Polygon',
  'coordinates':
    [[[-122.081, 37.417],
      [-122.086, 37.421],
      [-122.084, 37.418],
      [-122.089, 37.416]]]
});
// Apply the type method to the Geometry object.
var geometryType = geometry.type();
// Print the result to the console.
print('geometry.type(...) =', geometryType);
// Display relevant geometries on the map.
Map.setCenter(-122.085, 37.422, 15);
Map.addLayer(geometry,
             {'color': 'black'},
             'Geometry [black]: geometry');
  
    
  
  
    
  
  
  
  
    
  
    
  הגדרת Python
  מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף 
    Python Environment.
  import ee
import geemap.core as geemap
  
    
    
      Colab (Python)
    
    
  # Define a Geometry object.
geometry = ee.Geometry({
    'type': 'Polygon',
    'coordinates': [[
        [-122.081, 37.417],
        [-122.086, 37.421],
        [-122.084, 37.418],
        [-122.089, 37.416],
    ]],
})
# Apply the type method to the Geometry object.
geometry_type = geometry.type()
# Print the result.
display('geometry.type(...) =', geometry_type)
# Display relevant geometries on the map.
m = geemap.Map()
m.set_center(-122.085, 37.422, 15)
m.add_layer(geometry, {'color': 'black'}, 'Geometry [black]: geometry')
m
  
  
  
  
  
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
  עדכון אחרון: 2025-07-26 (שעון UTC).
  
  
  
    
      [null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[]]