ee.FeatureCollection.getArray

חילוץ מאפיין מתכונה.

שימושהחזרות
FeatureCollection.getArray(property)מערך
ארגומנטסוגפרטים
זה: objectרכיבהתכונה שממנה יש לחלץ את הנכס.
propertyמחרוזתהנכס לחילוץ.

דוגמאות

עורך הקוד (JavaScript)

// A FeatureCollection with an array property value.
var fc = ee.FeatureCollection([]).set('array_property', ee.Array([1, 2, 3, 4]));

// Fetch the array property value as an ee.Array object.
print('Array property value as ee.Array', fc.getArray('array_property'));

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

# A FeatureCollection with an array property value.
fc = ee.FeatureCollection([]).set('array_property', ee.Array([1, 2, 3, 4]))

# Fetch the array property value as an ee.Array object.
print('Array property value as ee.Array:',
      fc.getArray('array_property').getInfo())