공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.FeatureCollection.getDownloadURL
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
다운로드 URL을 가져옵니다. URL에 액세스하면 FeatureCollection이 여러 형식 중 하나로 다운로드됩니다.
콜백이 지정된 경우 다운로드 URL을 반환하거나 정의되지 않은 값을 반환합니다.
사용 | 반환 값 |
---|
FeatureCollection.getDownloadURL(format, selectors, filename, callback) | 객체|문자열 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: featurecollection | FeatureCollection | FeatureCollection 인스턴스입니다. |
format | 문자열, 선택사항 | 다운로드 형식입니다. 'csv', 'json', 'geojson', 'kml', 'kmz' 중 하나입니다. 'json'은 GeoJSON을 출력합니다. 지정하지 않으면 기본값은 'csv'입니다. |
selectors | List<String>|String(선택사항) | 다운로드할 속성을 선택하는 데 사용되는 기능 속성 이름입니다. 지정하지 않으면 모든 속성이 포함됩니다. |
filename | 문자열, 선택사항 | 다운로드할 파일의 이름입니다. 확장자는 기본적으로 추가됩니다. 지정하지 않으면 기본값은 'table'입니다. |
callback | 함수(선택사항) | 선택적 콜백입니다. 제공되지 않으면 호출이 동기적으로 이루어집니다. |
예
코드 편집기 (JavaScript)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
// Get a download URL for the FeatureCollection.
var downloadUrl = fc.getDownloadURL({
format: 'CSV',
selectors: ['capacitymw', 'fuel1'],
filename: 'belgian_power_plants'
});
print('URL for downloading FeatureCollection as CSV', downloadUrl);
Python 설정
Python API 및 geemap
를 사용한 대화형 개발에 관한 자세한 내용은
Python 환경 페이지를 참고하세요.
import ee
import geemap.core as geemap
Colab (Python)
# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
'country_lg == "Belgium"')
# Get a download URL for the FeatureCollection.
download_url = fc.getDownloadURL(**{
'filetype': 'CSV',
'selectors': ['capacitymw', 'fuel1'],
'filename': 'belgian_power_plants',
})
print('URL for downloading FeatureCollection as CSV:', download_url)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],["The `FeatureCollection.getDownloadURL` method generates a URL for downloading a FeatureCollection in various formats (CSV, JSON, GeoJSON, KML, KMZ). Users can specify the `format`, `selectors` (properties to include), and `filename`. If a `callback` function is used, the method returns `undefined`. If not, it will return the download URL synchronously. If format and filename are not specified, they default to CSV and \"table\" respectively, all properties are included.\n"],null,[]]