공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.FeatureCollection.get
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
특성에서 속성을 추출합니다.
사용 | 반환 값 |
---|
FeatureCollection.get(property) | |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: object | 요소 | 속성을 추출할 기능입니다. |
property | 문자열 | 추출할 속성입니다. |
예
코드 편집기 (JavaScript)
// A global power plant FeatureCollection.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');
// View a list of FeatureCollection property names.
print(fc.propertyNames());
// Get the value of a listed property.
print('Global power plant data provider as ee.ComputedObject',
fc.get('provider'));
// The returned value is an ee.ComputedObject which has no methods available for
// further processing; cast to the relevant Earth Engine object class for use.
print('Global power plant data provider as ee.String',
ee.String(fc.get('provider')));
Python 설정
Python API 및 geemap
를 사용한 대화형 개발에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# A global power plant FeatureCollection.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')
# View a list of FeatureCollection property names.
print(fc.propertyNames().getInfo())
# Get the value of a listed property.
print('Global power plant data provider as ee.ComputedObject:',
fc.get('provider').getInfo())
# The returned value is an ee.ComputedObject which has no methods available for
# further processing; cast to the relevant Earth Engine object class for use.
print('Global power plant data provider as ee.String:',
ee.String(fc.get('provider')).getInfo())
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThe \u003ccode\u003eget()\u003c/code\u003e method is used to extract a specific property from a Feature or FeatureCollection in Earth Engine.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epropertyNames()\u003c/code\u003e method provides a list of all property names associated with a Feature or FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eThe value returned by \u003ccode\u003eget()\u003c/code\u003e is an \u003ccode\u003eee.ComputedObject\u003c/code\u003e and might need to be cast to a specific Earth Engine object type for further processing.\u003c/p\u003e\n"],["\u003cp\u003eThe provided examples demonstrate how to access and utilize the extracted property value in both JavaScript and Python environments.\u003c/p\u003e\n"]]],["The core functionality involves extracting a specific property from a FeatureCollection using the `get(property)` method. This method requires the feature itself and the property name as input. The returned value is initially an `ee.ComputedObject`, which must be cast to the appropriate Earth Engine object type (e.g., `ee.String`) for further use. Examples demonstrate accessing property names via `propertyNames()` and extracting the 'provider' property from a power plant FeatureCollection in both JavaScript and Python.\n"],null,["# ee.FeatureCollection.get\n\nExtract a property from a feature.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| FeatureCollection.get`(property)` | |\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 global power plant FeatureCollection.\nvar fc = ee.FeatureCollection('WRI/GPPD/power_plants');\n\n// View a list of FeatureCollection property names.\nprint(fc.propertyNames());\n\n// Get the value of a listed property.\nprint('Global power plant data provider as ee.ComputedObject',\n fc.get('provider'));\n\n// The returned value is an ee.ComputedObject which has no methods available for\n// further processing; cast to the relevant Earth Engine object class for use.\nprint('Global power plant data provider as ee.String',\n ee.String(fc.get('provider')));\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 global power plant FeatureCollection.\nfc = ee.FeatureCollection('WRI/GPPD/power_plants')\n\n# View a list of FeatureCollection property names.\nprint(fc.propertyNames().getInfo())\n\n# Get the value of a listed property.\nprint('Global power plant data provider as ee.ComputedObject:',\n fc.get('provider').getInfo())\n\n# The returned value is an ee.ComputedObject which has no methods available for\n# further processing; cast to the relevant Earth Engine object class for use.\nprint('Global power plant data provider as ee.String:',\n ee.String(fc.get('provider')).getInfo())\n```"]]