ee.FeatureCollection.getNumber
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी सुविधा से प्रॉपर्टी निकालना.
इस्तेमाल | रिटर्न |
---|
FeatureCollection.getNumber(property) | नंबर |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: object | एलिमेंट | वह सुविधा जिससे प्रॉपर्टी को निकालना है. |
property | स्ट्रिंग | वह प्रॉपर्टी जिसे एक्सट्रैक्ट करना है. |
उदाहरण
कोड एडिटर (JavaScript)
// A FeatureCollection with a number property value.
var fc = ee.FeatureCollection([]).set('number_property', 1.5);
// Fetch the number property value as an ee.Number object.
print('Number property value as ee.Number', fc.getNumber('number_property'));
Python सेटअप करना
Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap
का इस्तेमाल करने के बारे में जानकारी पाने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
# A FeatureCollection with a number property value.
fc = ee.FeatureCollection([]).set('number_property', 1.5)
# Fetch the number property value as an ee.Number object.
print('Number property value as ee.Number:',
fc.getNumber('number_property').getInfo())
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe \u003ccode\u003egetNumber()\u003c/code\u003e method extracts a numerical property from an Earth Engine FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eIt takes the property name as an argument and returns the property value as an ee.Number object.\u003c/p\u003e\n"],["\u003cp\u003eThis method is useful for accessing specific numerical data stored within a FeatureCollection's properties.\u003c/p\u003e\n"]]],[],null,["# ee.FeatureCollection.getNumber\n\nExtract a property from a feature.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------|---------|\n| FeatureCollection.getNumber`(property)` | Number |\n\n| Argument | Type | Details |\n|----------------|---------|-------------------------------------------|\n| this: `object` | Element | The feature to extract the property from. |\n| `property` | String | The property to extract. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// A FeatureCollection with a number property value.\nvar fc = ee.FeatureCollection([]).set('number_property', 1.5);\n\n// Fetch the number property value as an ee.Number object.\nprint('Number property value as ee.Number', fc.getNumber('number_property'));\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\n# A FeatureCollection with a number property value.\nfc = ee.FeatureCollection([]).set('number_property', 1.5)\n\n# Fetch the number property value as an ee.Number object.\nprint('Number property value as ee.Number:',\n fc.getNumber('number_property').getInfo())\n```"]]