सूचना: जिन गैर-व्यावसायिक प्रोजेक्ट के लिए Earth Engine को
15 अप्रैल, 2025 से पहले रजिस्टर किया गया है उन्हें ऐक्सेस बनाए रखने के लिए,
गैर-व्यावसायिक इस्तेमाल से जुड़ी ज़रूरी शर्तों की पुष्टि करनी होगी. अगर आपने 26 सितंबर, 2025 तक पुष्टि नहीं की, तो आपके ऐक्सेस को होल्ड पर रखा जा सकता है.
Export.table.toDrive
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Drive में टेबल के तौर पर FeatureCollection एक्सपोर्ट करने के लिए, एक बैच टास्क बनाता है. Tasks टैब से टास्क शुरू किए जा सकते हैं.
इस्तेमाल | रिटर्न |
---|
Export.table.toDrive(collection, description, folder, fileNamePrefix, fileFormat, selectors, maxVertices, priority) | |
आर्ग्यूमेंट | टाइप | विवरण |
---|
collection | FeatureCollection | एक्सपोर्ट करने के लिए फ़ीचर कलेक्शन. |
description | स्ट्रिंग, ज़रूरी नहीं | टास्क का ऐसा नाम जिसे आसानी से पढ़ा जा सकता है. इसमें अक्षर, संख्याएं, -, _ (कोई स्पेस नहीं) शामिल हो सकते हैं. डिफ़ॉल्ट रूप से, "myExportTableTask" पर सेट होता है. |
folder | स्ट्रिंग, ज़रूरी नहीं | Google Drive का वह फ़ोल्डर जिसमें एक्सपोर्ट की गई फ़ाइल सेव होगी. ध्यान दें: (a) अगर फ़ोल्डर का नाम किसी भी लेवल पर मौजूद है, तो आउटपुट उसमें लिखा जाता है, (b) अगर फ़ोल्डर के डुप्लीकेट नाम मौजूद हैं, तो आउटपुट हाल ही में बदले गए फ़ोल्डर में लिखा जाता है, (c) अगर फ़ोल्डर का नाम मौजूद नहीं है, तो रूट में एक नया फ़ोल्डर बनाया जाएगा, और (d) सेपरेटर वाले फ़ोल्डर के नाम (उदाहरण के लिए, 'path/to/file') को सिस्टम पाथ के बजाय लिटरल स्ट्रिंग के तौर पर समझा जाता है. डिफ़ॉल्ट रूप से, Drive के रूट पर सेट होता है. |
fileNamePrefix | स्ट्रिंग, ज़रूरी नहीं | फ़ाइल के नाम का प्रीफ़िक्स. इसमें अक्षर, संख्याएं, -, _ (कोई स्पेस नहीं) शामिल हो सकते हैं. डिफ़ॉल्ट रूप से, ब्यौरा दिखता है. |
fileFormat | स्ट्रिंग, ज़रूरी नहीं | आउटपुट फ़ॉर्मैट: "CSV" (डिफ़ॉल्ट), "GeoJSON", "KML", "KMZ" या "SHP" या "TFRecord". |
selectors | List<String>|String, ज़रूरी नहीं | एक्सपोर्ट में शामिल करने के लिए प्रॉपर्टी की सूची. यह सूची, कॉमा लगाकर अलग किए गए नामों वाली एक स्ट्रिंग या स्ट्रिंग की सूची हो सकती है. |
maxVertices | नंबर, ज़रूरी नहीं | हर ज्यामिति में बिना काटे गए वर्टिक्स की ज़्यादा से ज़्यादा संख्या; ज़्यादा वर्टिक्स वाली ज्यामितियों को इस साइज़ से छोटे टुकड़ों में काटा जाएगा. |
priority | नंबर, ज़रूरी नहीं | प्रोजेक्ट में टास्क की प्राथमिकता. ज़्यादा प्राथमिकता वाले टास्क जल्दी शेड्यूल किए जाते हैं. यह 0 और 9999 के बीच का पूर्णांक होना चाहिए. डिफ़ॉल्ट रूप से, यह 100 पर सेट होती है. |
उदाहरण
कोड एडिटर (JavaScript)
// A Sentinel-2 surface reflectance image.
var img = ee.Image('COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG');
Map.setCenter(-122.359, 37.428, 9);
Map.addLayer(img, {bands: ['B11', 'B8', 'B3'], min: 100, max: 3500}, 'img');
// Sample the image at 20 m scale, a point feature collection is returned.
var samp = img.sample({scale: 20, numPixels: 50, geometries: true});
Map.addLayer(samp, {color: 'white'}, 'samp');
print('Image sample feature collection', samp);
// Export the image sample feature collection to Drive as a CSV file.
Export.table.toDrive({
collection: samp,
description: 'image_sample_demo_csv',
folder: 'earth_engine_demos',
fileFormat: 'CSV'
});
// Export a subset of collection properties: three bands and the geometry
// as GeoJSON.
Export.table.toDrive({
collection: samp,
description: 'image_sample_demo_prop_subset',
folder: 'earth_engine_demos',
fileFormat: 'GeoJSON',
selectors: ['B8', 'B11', 'B12', '.geo']
});
// Export the image sample feature collection to Drive as a shapefile.
Export.table.toDrive({
collection: samp,
description: 'image_sample_demo_shp',
folder: 'earth_engine_demos',
fileFormat: 'SHP'
});
Python सेटअप
Python API के बारे में जानकारी पाने और इंटरैक्टिव डेवलपमेंट के लिए geemap
का इस्तेमाल करने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
# A Sentinel-2 surface reflectance image.
img = ee.Image('COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG')
m = geemap.Map()
m.set_center(-122.359, 37.428, 9)
m.add_layer(
img, {'bands': ['B11', 'B8', 'B3'], 'min': 100, 'max': 3500}, 'img'
)
# Sample the image at 20 m scale, a point feature collection is returned.
samp = img.sample(scale=20, numPixels=50, geometries=True)
m.add_layer(samp, {'color': 'white'}, 'samp')
display(m)
display('Image sample feature collection', samp)
# Export the image sample feature collection to Drive as a CSV file.
task = ee.batch.Export.table.toDrive(
collection=samp,
description='image_sample_demo_csv',
folder='earth_engine_demos',
fileFormat='CSV',
)
task.start()
# Export a subset of collection properties: three bands and the geometry
# as GeoJSON.
task = ee.batch.Export.table.toDrive(
collection=samp,
description='image_sample_demo_prop_subset',
folder='earth_engine_demos',
fileFormat='GeoJSON',
selectors=['B8', 'B11', 'B12', '.geo'],
)
task.start()
# Export the image sample feature collection to Drive as a shapefile.
task = ee.batch.Export.table.toDrive(
collection=samp,
description='image_sample_demo_shp',
folder='earth_engine_demos',
fileFormat='SHP',
)
task.start()
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["This function exports a FeatureCollection as a table to Google Drive. Key actions include specifying the `collection`, task `description`, target `folder`, `fileNamePrefix`, and `fileFormat` (CSV, GeoJSON, KML, KMZ, SHP, or TFRecord). Optional actions include specifying `selectors` to limit exported properties, setting `maxVertices` to manage geometry size, and `priority` to control task scheduling. Multiple examples show how to export sampled image data to Drive in various formats.\n"]]