ee.FeatureCollection.getDownloadURL
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
डाउनलोड करने का यूआरएल मिलता है. यूआरएल को ऐक्सेस करने पर, FeatureCollection को कई फ़ॉर्मैट में से किसी एक में डाउनलोड किया जाता है.
अगर कोई कॉलबैक तय किया गया था, तो डाउनलोड करने के लिए यूआरएल दिखाता है. अगर कॉलबैक तय नहीं किया गया था, तो 'तय नहीं किया गया' दिखाता है.
इस्तेमाल | रिटर्न |
---|
FeatureCollection.getDownloadURL(format, selectors, filename, callback) | ऑब्जेक्ट|स्ट्रिंग |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: featurecollection | FeatureCollection | FeatureCollection इंस्टेंस. |
format | स्ट्रिंग, ज़रूरी नहीं | डाउनलोड का फ़ॉर्मैट, इनमें से कोई एक:
"csv", "json", "geojson", "kml", "kmz" ("json", GeoJSON आउटपुट करता है). अगर कोई वैल्यू नहीं दी जाती है, तो डिफ़ॉल्ट रूप से "csv" पर सेट हो जाती है. |
selectors | List<String>|String, ज़रूरी नहीं | डाउनलोड किए जाने वाले एट्रिब्यूट चुनने के लिए, सुविधा प्रॉपर्टी के नाम. अगर कोई वैल्यू नहीं दी जाती है, तो सभी प्रॉपर्टी शामिल की जाती हैं. |
filename | स्ट्रिंग, ज़रूरी नहीं | डाउनलोड की जाने वाली फ़ाइल का नाम. एक्सटेंशन डिफ़ॉल्ट रूप से जुड़ जाता है. अगर कोई वैल्यू नहीं दी जाती है, तो डिफ़ॉल्ट रूप से "टेबल" पर सेट होता है. |
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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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,[]]