ee.data.getThumbId
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รับรหัสภาพปกสำหรับชิ้นงานที่ระบุ
แสดงผลรหัสภาพขนาดย่อและโทเค็นที่ไม่บังคับ หรือ Null หากมีการระบุการเรียกกลับ
การใช้งาน | การคืนสินค้า |
---|
ee.data.getThumbId(params, callback) | ThumbnailId |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
params | ThumbnailOptions | ออบเจ็กต์ที่มีตัวเลือกภาพขนาดย่อพร้อมค่าที่เป็นไปได้ต่อไปนี้
image (ee.Image) รูปภาพที่จะใช้ทำภาพขนาดย่อ |
bands (อาร์เรย์ของสตริง) อาร์เรย์ของชื่อวง |
format (สตริง) รูปแบบไฟล์ ("png", "jpg", "geotiff") |
name (สตริง): ชื่อฐาน |
ใช้ ee.Image.getThumbURL สำหรับตัวเลือกภูมิภาค ขนาด และการแสดงภาพที่รองรับ |
callback | ฟังก์ชัน (ไม่บังคับ) | การเรียกกลับที่ไม่บังคับ หากไม่ได้ระบุไว้ ระบบจะโทรแบบพร้อมกัน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThe \u003ccode\u003eee.data.getThumbId\u003c/code\u003e function retrieves the thumbnail ID and optional token for a given Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eIt requires thumbnail options as parameters, including the image, band names, file format, and base name.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eee.Image.getThumbURL\u003c/code\u003e for specifying region, dimensions, and visualization parameters when generating thumbnail URLs.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns the ThumbnailId object or null if a callback function is provided.\u003c/p\u003e\n"]]],[],null,["# ee.data.getThumbId\n\n\u003cbr /\u003e\n\nGet a Thumbnail Id for a given asset.\n\n\u003cbr /\u003e\n\nReturns the thumb ID and optional token, or null if a callback is specified.\n\n| Usage | Returns |\n|--------------------------------------------|-------------|\n| `ee.data.getThumbId(params, `*callback*`)` | ThumbnailId |\n\n| Argument | Type | Details |\n|------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | ThumbnailOptions | An object containing thumbnail options with the following possible values: |----------------------------------------------------------------| | ` image ` (ee.Image) The image to make a thumbnail. | | ` bands ` (array of strings) An array of band names. | | ` format ` (string) The file format (\"png\", \"jpg\", \"geotiff\"). | | ` name ` (string): The base name. | Use ee.Image.getThumbURL for region, dimensions, and visualization options support. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]