Earth Engine,
गैर-व्यावसायिक इस्तेमाल के लिए कोटा टियर लॉन्च कर रहा है. इससे शेयर किए गए कंप्यूट संसाधनों को सुरक्षित रखने और सभी के लिए भरोसेमंद परफ़ॉर्मेंस को पक्का करने में मदद मिलेगी. सभी गैर-व्यावसायिक प्रोजेक्ट को
27 अप्रैल, 2026 तक कोटा टियर चुनना होगा. ऐसा न करने पर, वे डिफ़ॉल्ट रूप से कम्यूनिटी टियर का इस्तेमाल करेंगे. टियर के कोटे, सभी प्रोजेक्ट के लिए
27 अप्रैल, 2026 से लागू होंगे. भले ही, टियर चुनने की तारीख कुछ भी हो.
ज़्यादा जानें।
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, optional | एक्सपोर्ट में शामिल की जाने वाली प्रॉपर्टी की सूची. यह कॉमा लगाकर अलग किए गए नामों वाली एक स्ट्रिंग या स्ट्रिंग की सूची हो सकती है. |
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 एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2026-01-08 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2026-01-08 (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"]]