ב-Earth Engine הוספנו
רמות מכסת שימוש לא מסחרי כדי להגן על משאבי מחשוב משותפים ולספק ביצועים מהימנים לכולם. בפרויקטים לא מסחריים נעשה שימוש במסלול Community כברירת מחדל, אבל אפשר לשנות את המסלול של הפרויקט בכל שלב.
Google משתמשת בטכנולוגיית AI כדי לתרגם תוכן לשפה המועדפת עליך. בתרגומים כאלו עשויות להיות שגיאות.
Export.table.toDrive
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יוצר משימת אצווה לייצוא של FeatureCollection כטבלה ל-Drive. אפשר להתחיל משימות מהכרטיסייה 'משימות'.
| שימוש | החזרות |
|---|
Export.table.toDrive(collection, description, folder, fileNamePrefix, fileFormat, selectors, maxVertices, priority) | |
| ארגומנט | סוג | פרטים |
|---|
collection | FeatureCollection | אוסף התכונות לייצוא. |
description | מחרוזת, אופציונלי | שם המשימה שקריא לאנשים. יכול להכיל אותיות, מספרים, -, _ (ללא רווחים). ברירת המחדל היא myExportTableTask. |
folder | מחרוזת, אופציונלי | תיקיית Google Drive שבה יאוחסן הייצוא. הערות: (א) אם שם התיקייה קיים ברמה כלשהי, הפלט ייכתב לתוכה, (ב) אם קיימים שמות כפולים של תיקיות, הפלט ייכתב לתיקייה שהשתנתה לאחרונה, (ג) אם שם התיקייה לא קיים, תיקייה חדשה תיווצר בתיקיית הבסיס, (ד) שמות של תיקיות עם מפרידים (למשל, 'path/to/file') מתפרשים כמחרוזות מילוליות, ולא כנתיבי מערכת. ברירת המחדל היא תיקיית הבסיס ב-Drive. |
fileNamePrefix | מחרוזת, אופציונלי | הקידומת של שם הקובץ. יכול להכיל אותיות, מספרים, -, _ (ללא רווחים). ברירת המחדל היא התיאור. |
fileFormat | מחרוזת, אופציונלי | פורמט הפלט: CSV (ברירת מחדל), GeoJSON, KML, KMZ, SHP או TFRecord. |
selectors | List[String]|String, optional | רשימה של מאפיינים שייכללו בייצוא. אפשר להזין מחרוזת אחת עם שמות שמופרדים בפסיקים או רשימה של מחרוזות. |
maxVertices | מספר, אופציונלי | המספר המקסימלי של קודקודים לא חתוכים לכל גיאומטריה. גיאומטריות עם יותר קודקודים ייחתכו לחלקים קטנים יותר מהגודל הזה. |
priority | מספר, אופציונלי | העדיפות של המשימה בפרויקט. משימות בעדיפות גבוהה יותר יתוזמנו מוקדם יותר. חייב להיות מספר שלם בין 0 ל-9999. ברירת המחדל היא 100. |
דוגמאות
Code Editor (JavaScript)
// 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 מפורט מידע על Python API ועל השימוש ב-geemap לפיתוח אינטראקטיבי.
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()
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-11-02 (שעון UTC).
[null,null,["עדכון אחרון: 2026-11-02 (שעון 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"]]