ee.data.startProcessing
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
کار پردازشی ایجاد کنید که یک تصویر را صادر یا از قبل رندر کند.
در صورتی که یک تماس برگشتی مشخص شده باشد، مقدار بازگشتی صفر است.
یک شی را با فیلدها برمی گرداند:
- taskId: شناسه وظیفه ارسال شده (بدون خط فاصله).
- نام: نام کامل عملیات در قالب پروژه ها/X/عملیات/Y
- شروع شد: "خوب" خواهد بود
- توجه: ممکن است مقدار "ALREADY_EXISTS" داشته باشد اگر یک کار یکسان با همان شناسه ارسال نشده از قبل وجود داشته باشد.
استفاده | برمی گرداند | ee.data.startProcessing(taskId, params, callback ) | پردازش پاسخ |
استدلال | تایپ کنید | جزئیات | taskId | رشته | شناسه ارسال نشده برای کار (به دست آمده از newTaskId). برای شناسایی وظایف تکراری استفاده می شود. ممکن است پوچ باشد سرور یک شناسه ارسالی ایجاد و برمی گرداند. |
params | شیء | شیئی که وظیفه پردازش را توصیف می کند. فقط فیلدهایی که برای همه انواع پردازش مشترک هستند در اینجا مستند می شوند. (رشته) یا «EXPORT_IMAGE»، «EXPORT_FEATURES»، «EXPORT_VIDEO» یا «EXPORT_TILES» را تایپ کنید. json (رشته) JSON شرح تصویر. |
callback | عملکرد، اختیاری | پاسخ به تماس اختیاری در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]