ee.data.startProcessing
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างงานการประมวลผลที่ส่งออกหรือแสดงผลล่วงหน้าของรูปภาพ
ค่าที่ส่งคืนจะเป็น Null หากมีการระบุ Callback
แสดงผลออบเจ็กต์ที่มีช่องต่อไปนี้
- taskId: รหัสงานที่ส่ง (ไม่มีขีดกลาง)
- name: ชื่อการดำเนินการแบบเต็มในรูปแบบ projects/X/operations/Y
- เริ่มต้น: จะเป็น "ตกลง"
- หมายเหตุ: อาจมีค่า "ALREADY_EXISTS" หากมีงานที่เหมือนกันซึ่งมีรหัสเดียวกันที่ยังไม่ได้ส่งอยู่แล้ว
การใช้งาน | การคืนสินค้า |
---|
ee.data.startProcessing(taskId, params, callback) | ProcessingResponse |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
taskId | สตริง | รหัสที่ยังไม่ได้ส่งสำหรับงาน (ได้จาก newTaskId) ใช้เพื่อระบุงานที่ซ้ำกัน อาจเป็นค่าว่าง เซิร์ฟเวอร์จะสร้างและแสดงรหัสที่ส่ง |
params | วัตถุ | ออบเจ็กต์ที่อธิบายงานการประมวลผล มีเพียงฟิลด์ที่ใช้ร่วมกันสำหรับประเภทการประมวลผลทั้งหมดเท่านั้นที่ระบุไว้ที่นี่ type (สตริง) เป็น "EXPORT_IMAGE", "EXPORT_FEATURES", "EXPORT_VIDEO" หรือ "EXPORT_TILES" json (สตริง) คำอธิบาย JSON ของรูปภาพ |
callback | ฟังก์ชัน (ไม่บังคับ) | การเรียกกลับที่ไม่บังคับ หากไม่ได้ระบุไว้ ระบบจะโทรแบบพร้อมกัน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThis processing task exports or pre-renders an image and can be initiated using \u003ccode\u003eee.data.startProcessing\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns an object containing task details like ID, name, status, and potential notes, or null if a callback is provided.\u003c/p\u003e\n"],["\u003cp\u003eTask parameters include a user-defined or server-generated task ID and a JSON object describing the image and export type.\u003c/p\u003e\n"],["\u003cp\u003eAn optional callback function can be included for asynchronous execution.\u003c/p\u003e\n"]]],["The `ee.data.startProcessing` function initiates a processing task to export or pre-render an image. It accepts a `taskId`, `params` object (specifying task type and JSON description), and an optional `callback`. The function returns a `ProcessingResponse` object with the submitted task ID, operation name, and start status, or `null` if a callback is provided. `taskId` is a user-defined ID, while the server generates the submitted ID, and `params` specify the task type. A note of `ALREADY_EXISTS` may be present.\n"],null,["# ee.data.startProcessing\n\n\u003cbr /\u003e\n\nCreate processing task that exports or pre-renders an image.\n\n\u003cbr /\u003e\n\nReturn value is null if a callback is specified.\n\nReturns an object with fields:\n\n- taskId: Submitted task ID (without hyphens).\n\n- name: Full operation name in the format projects/X/operations/Y\n\n- started: will be 'OK'\n\n- note: may have value 'ALREADY_EXISTS' if an identical task with the same unsubmitted ID already exists.\n\n| Usage | Returns |\n|---------------------------------------------------------|--------------------|\n| `ee.data.startProcessing(taskId, params, `*callback*`)` | ProcessingResponse |\n\n| Argument | Type | Details |\n|------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `taskId` | String | Unsubmitted ID for the task (obtained from newTaskId). Used to identify duplicated tasks; may be null. The server will create and return a submitted ID. |\n| `params` | Object | The object that describes the processing task; only fields that are common for all processing types are documented here. type (string) Either 'EXPORT_IMAGE', 'EXPORT_FEATURES', 'EXPORT_VIDEO' or 'EXPORT_TILES'. json (string) JSON description of the image. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]