Export.table.toDrive

Drive-এ টেবিল হিসেবে FeatureCollection এক্সপোর্ট করার জন্য ব্যাচ টাস্ক তৈরি করে। টাস্ক ট্যাবে গিয়ে টাস্ক শুরু করা যাবে।

ব্যবহাররিটার্ন
Export.table.toDrive(collection, description, folder, fileNamePrefix, fileFormat, selectors, maxVertices, priority)
আর্গুমেন্টধরনবিবরণ
collectionFeatureCollectionএক্সপোর্ট করার জন্য ফিচার কালেকশন।
descriptionস্ট্রিং, ঐচ্ছিকটাস্কের মানুষের-পঠনযোগ্য নাম। এতে অক্ষর, সংখ্যা, -, _ (কোনও স্পেস নয়) থাকতে পারে। ডিফল্ট হিসেবে "myExportTableTask" সেট করা থাকে।
folderস্ট্রিং, ঐচ্ছিকএক্সপোর্ট করা ফাইলটি যে Google Drive ফোল্ডারে থাকবে। মনে রাখবেন: (ক) ফোল্ডারের নাম যেকোনও লেভেলে থাকলে, আউটপুট সেখানে লেখা হয়, (খ) ডুপ্লিকেট ফোল্ডারের নাম থাকলে, সবচেয়ে সম্প্রতি পরিবর্তন করা ফোল্ডারে আউটপুট লেখা হয়, (গ) ফোল্ডারের নাম না থাকলে, রুটে নতুন ফোল্ডার তৈরি করা হবে এবং (ঘ) সেপারেটর সহ ফোল্ডারের নাম (যেমন, 'path/to/file') লিটারেল স্ট্রিং হিসেবে ব্যাখ্যা করা হয়, সিস্টেম পাথ হিসেবে নয়। ডিফল্ট হিসেবে Drive রুটে সেট করা থাকে।
fileNamePrefixস্ট্রিং, ঐচ্ছিকফাইলের নামের প্রিফিক্স। এতে অক্ষর, সংখ্যা, -, _ (কোনও স্পেস নয়) থাকতে পারে। ডিফল্ট হিসেবে বিবরণে সেট করা থাকে।
fileFormatস্ট্রিং, ঐচ্ছিকআউটপুট ফর্ম্যাট: "CSV" (ডিফল্ট), "GeoJSON", "KML", "KMZ" বা "SHP" অথবা "TFRecord"।
selectorsList[String]|String, optionalএক্সপোর্টে অন্তর্ভুক্ত করার জন্য প্রপার্টির তালিকা; কমা দিয়ে আলাদা করা নাম সহ একটি স্ট্রিং অথবা স্ট্রিংয়ের তালিকা।
maxVerticesনম্বর, ঐচ্ছিকপ্রতি জ্যামিতিতে আনকাট ভার্টিসেসের সর্বাধিক সংখ্যা; আরও ভার্টিসেস সহ জ্যামিতিগুলি এই সাইজের চেয়ে ছোট টুকরোতে কাটা হবে।
priorityনম্বর, ঐচ্ছিকপ্রোজেক্টের মধ্যে টাস্কের অগ্রাধিকার। বেশি অগ্রাধিকারযুক্ত টাস্ক আগে শিডিউল করা হয়। ০ থেকে ৯৯৯৯-এর মধ্যে কোনও পূর্ণসংখ্যা হতে হবে। ডিফল্ট হিসেবে ১০০ সেট করা থাকে।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// A Sentinel-2 surface reflectance image.
var img = ee.Image('COPERNICUS/S2_SR_HARMONIZED/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_HARMONIZED/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()