ee.Image.linkCollection
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מקשר את תמונת המקור לתמונה תואמת מאוסף תמונות.
כל הפסים או המטא-נתונים שצוינו יתווספו לתמונת המקור מהתמונה שנמצאת באוסף, ואם הפסים או המטא-נתונים כבר קיימים הם יוחלפו. אם לא נמצאה תמונה תואמת, כל הפסים החדשים או המעודכנים יוסתרו באופן מלא וכל המטא-נתונים החדשים או המעודכנים יהיו null. השטח של הפלט יהיה זהה לשטח של תמונת המקור.
התאמה נקבעת אם לתמונת המקור ולתמונה באוסף יש מאפיין מטא-נתונים מקביל ספציפי. אם יש יותר מתמונה אחת לקולקציה שמתאימה, התמונה שנבחרת היא אקראית. כברירת מחדל, התמונות משויכות לפי מאפיין המטא-נתונים 'system:index'.
פונקציית הקישור הזו היא שיטה נוחה להוספת רצועות לתמונת יעד על סמך מאפיין מטא-נתונים משותף שצוין, והיא נועדה לתמוך בקישור של אוספים שמחילים עיבוד שונה או יצירת מוצר שונה על אותה תמונת מקור. מידע נוסף על קישור מתקדם יותר, שנקרא 'צירוף', זמין בכתובת https://developers.google.com/earth-engine/guides/joins_intro.
שימוש | החזרות |
---|
Image.linkCollection(imageCollection, linkedBands, linkedProperties, matchPropertyName) | תמונה |
ארגומנט | סוג | פרטים |
---|
זה: input | תמונה | תמונת המקור שאליה תקושר תמונה תואמת באוסף. |
imageCollection | ImageCollection | אוסף התמונות שנבדק כדי לחלץ תמונה שתואמת למקור. |
linkedBands | אובייקט, ברירת מחדל: null | שם של להקה או רשימה של שמות להקות שרוצים להוסיף או לעדכן מהתמונה התואמת. |
linkedProperties | אובייקט, ברירת מחדל: null | מאפיין מטא-נתונים או רשימה של מאפיינים שרוצים להוסיף או לעדכן מהתמונה התואמת. |
matchPropertyName | מחרוזת, ברירת מחדל: system:index | שם מאפיין המטא-נתונים שמשמש כקריטריון להתאמה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eLinks a source image to a matching image within a specified image collection based on a shared metadata property, such as 'system:index'.\u003c/p\u003e\n"],["\u003cp\u003eIf a match is found, it adds or overwrites bands and metadata from the collection image to the source image, otherwise, new bands are masked and metadata is nulled.\u003c/p\u003e\n"],["\u003cp\u003ePrimarily used to link collections with varied processing applied to the same base imagery, providing a streamlined method for band and metadata integration.\u003c/p\u003e\n"],["\u003cp\u003eOffers basic linking functionality; for more complex scenarios requiring joins, refer to the Earth Engine guide on joins.\u003c/p\u003e\n"],["\u003cp\u003eThe output maintains the source image's footprint regardless of the linking outcome.\u003c/p\u003e\n"]]],["The `linkCollection` function links a source image to a matching image from a collection based on a shared metadata property, defaulting to 'system:index'. It adds or overwrites specified bands and metadata from the matched collection image onto the source image. If no match is found, new or updated bands are masked, and metadata is null. The function accepts arguments for the collection, bands, metadata properties to link, and the match property name. The output footprint matches the source image.\n"],null,["# ee.Image.linkCollection\n\nLinks the source image to a matching image from an image collection.\n\n\u003cbr /\u003e\n\nAny specified bands or metadata will be added to the source image from the image found in the collection, and if the bands or metadata are already present they will be overwritten. If a matching image is not found, any new or updated bands will be fully masked and any new or updated metadata will be null. The output footprint will be the same as the source image footprint.\n\nA match is determined if the source image and an image in the collection have a specific equivalent metadata property. If more than one collection image would match, the collection image selected is arbitrary. By default, images are matched on their 'system:index' metadata property.\n\nThis linking function is a convenience method for adding bands to a target image based on a specified shared metadata property and is intended to support linking collections that apply different processing/product generation to the same source imagery. For more expressive linking known as 'joining', see https://developers.google.com/earth-engine/guides/joins_intro.\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------------|---------|\n| Image.linkCollection`(imageCollection, `*linkedBands* `, `*linkedProperties* `, `*matchPropertyName*`)` | Image |\n\n| Argument | Type | Details |\n|---------------------|---------------------------------|-------------------------------------------------------------------------------------|\n| this: `input` | Image | The source image a matching image in the collection will be linked to. |\n| `imageCollection` | ImageCollection | The image collection searched to extract an image matching the source. |\n| `linkedBands` | Object, default: null | A band name or list of band names to add or update from the matching image. |\n| `linkedProperties` | Object, default: null | A metadata property or list of properties to add or update from the matching image. |\n| `matchPropertyName` | String, default: \"system:index\" | The metadata property name to use as a match criteria. |"]]