ee.data.startProcessing
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tạo tác vụ xử lý xuất hoặc kết xuất trước một hình ảnh.
Giá trị trả về là giá trị rỗng nếu bạn chỉ định một lệnh gọi lại.
Trả về một đối tượng có các trường:
- taskId: Mã việc cần làm đã gửi (không có dấu gạch ngang).
- name: Tên đầy đủ của thao tác theo định dạng projects/X/operations/Y
– started: sẽ là "OK"
– lưu ý: có thể có giá trị "ALREADY_EXISTS" nếu đã có một tác vụ giống hệt với cùng một mã nhận dạng chưa được gửi.
Cách sử dụng | Giá trị trả về |
---|
ee.data.startProcessing(taskId, params, callback) | ProcessingResponse |
Đối số | Loại | Thông tin chi tiết |
---|
taskId | Chuỗi | Mã chưa gửi cho việc cần làm (lấy từ newTaskId). Dùng để xác định các tác vụ trùng lặp; có thể có giá trị rỗng. Máy chủ sẽ tạo và trả về một mã nhận dạng đã gửi. |
params | Đối tượng | Đối tượng mô tả tác vụ xử lý; chỉ những trường phổ biến cho tất cả các loại xử lý mới được ghi lại ở đây. type (string) "EXPORT_IMAGE", "EXPORT_FEATURES", "EXPORT_VIDEO" hoặc "EXPORT_TILES". json (string) Nội dung mô tả JSON về hình ảnh. |
callback | Hàm, không bắt buộc | Một lệnh gọi lại không bắt buộc. Nếu không được cung cấp, lệnh gọi sẽ được thực hiện đồng bộ. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]