Method: projects.classifier.export
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.
Bắt đầu một quy trình xử lý hàng loạt để tính toán một thuật toán phân loại và lưu thuật toán đó dưới dạng một tài sản Earth Engine.
Yêu cầu HTTP
POST https://earthengine.googleapis.com/v1alpha/{project=projects/*}/classifier:export
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
project |
string
Bắt buộc. Mã dự án hoặc số dự án của dự án Google Cloud Platform sẽ được coi là người dùng dịch vụ cho yêu cầu này. Định dạng là projects/{project-id} .
Việc uỷ quyền yêu cầu quyền IAM sau đây trên tài nguyên project đã chỉ định:
earthengine.exports.create
|
Nội dung yêu cầu
Nội dung yêu cầu chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"expression": {
object (Expression )
},
"description": string,
"requestId": string,
"assetExportOptions": {
object (ClassifierAssetExportOptions )
},
"workloadTag": string,
"priority": integer
} |
Trường |
expression |
object (Expression )
Bắt buộc. Một biểu thức đánh giá thành một Trình phân loại Earth Engine để tính toán và xuất.
|
description |
string
Không bắt buộc. Tên không bắt buộc của việc cần làm mà con người đọc được.
|
requestId |
string
Không bắt buộc. Một chuỗi duy nhất dùng để phát hiện các yêu cầu trùng lặp. Nếu cùng một người dùng thực hiện nhiều yêu cầu với cùng một requestId không trống, thì chỉ một trong các yêu cầu đó mới có thể bắt đầu thành công một thao tác chạy trong thời gian dài. requestId có thể chứa các ký tự a..z, A..Z, 0-9 hoặc "-". requestId có thể dài tối đa 60 ký tự.
|
assetExportOptions |
object (ClassifierAssetExportOptions )
Bắt buộc. Định cấu hình dữ liệu xuất dưới dạng một thành phần Earth Engine.
|
workloadTag |
string
Không bắt buộc. Nhãn do người dùng cung cấp để theo dõi phép tính này.
|
priority |
integer
Không bắt buộc. Mức độ ưu tiên của tác vụ xuất trong dự án. Các tác vụ có mức độ ưu tiên cao hơn sẽ được lên lịch sớm hơn. Phải là số nguyên từ 0 đến 9999. Mặc định là 100 nếu không được đặt.
|
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Operation
.
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
ClassifierAssetExportOptions
Các tuỳ chọn để lưu bảng dưới dạng thành phần Earth Engine.
Biểu diễn dưới dạng JSON |
{
// Union field destination can be only one of the following:
"earthEngineDestination": {
object (EarthEngineDestination )
}
// End of list of possible types for union field destination .
} |
Trường |
Trường hợp hợp nhất destination . Vị trí ghi kết quả. destination chỉ có thể là một trong những giá trị sau: |
earthEngineDestination |
object (EarthEngineDestination )
Nếu được chỉ định, hãy định cấu hình tính năng xuất sang Earth Engine.
|
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-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eInitiates a batch process to compute and save a classifier as an Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eRequires an expression evaluating to an Earth Engine Classifier, asset export options, and authorization.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization with optional parameters like description, request ID, workload tag, and priority.\u003c/p\u003e\n"],["\u003cp\u003eReturns an Operation object upon successful request initiation.\u003c/p\u003e\n"],["\u003cp\u003eNeeds \u003ccode\u003eearthengine.exports.create\u003c/code\u003e IAM permission and specific OAuth scopes for authorization.\u003c/p\u003e\n"]]],["This describes initiating a batch process to compute and save a classifier as an Earth Engine asset via an HTTP POST request. The request requires a project ID and an expression defining the classifier. It also takes optional parameters like a task description, unique request ID, workload tag, and priority. The `assetExportOptions` field is required and specifies that it is an Earth Engine asset. Successful requests return an Operation instance, and it requires specific OAuth scopes for authorization.\n"],null,["# Method: projects.classifier.export\n\nInitiates a batch process that computes a classifier and saves it as an Earth Engine asset.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1alpha/{project=projects/*}/classifier:export`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | `string` Required. The project id or project number of the Google Cloud Platform project that should be treated as the service consumer for this request. Format is `projects/{project-id}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `project`: - `earthengine.exports.create` |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"expression\": { object (/earth-engine/reference/rest/v1alpha/Expression) }, \"description\": string, \"requestId\": string, \"assetExportOptions\": { object (/earth-engine/reference/rest/v1alpha/projects.classifier/export#ClassifierAssetExportOptions) }, \"workloadTag\": string, \"priority\": integer } ``` |\n\n| Fields ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `expression` | `object (`[Expression](/earth-engine/reference/rest/v1alpha/Expression)`)` Required. An expression that evaluates to an Earth Engine Classifier to compute and export. |\n| `description` | `string` Optional. An optional human-readable name of the task. |\n| `requestId` | `string` Optional. A unique string used to detect duplicated requests. If more than one request is made by the same user with the same non-empty `requestId`, only one of those requests may successfully start a long-running operation. `requestId` may contain the characters a..z, A..Z, 0-9, or '-'. `requestId` may be at most 60 characters long. |\n| `assetExportOptions` | `object (`[ClassifierAssetExportOptions](/earth-engine/reference/rest/v1alpha/projects.classifier/export#ClassifierAssetExportOptions)`)` Required. Configures the export as an Earth Engine asset. |\n| `workloadTag` | `string` Optional. User supplied label to track this computation. |\n| `priority` | `integer` Optional. The priority of the export task within the project. Higher priority tasks are scheduled sooner. Must be an integer between 0 and 9999. Defaults to 100 if not set. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/earth-engine/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/earthengine`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nClassifierAssetExportOptions\n----------------------------\n\nOptions for saving tables as Earth Engine assets.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `destination` can be only one of the following: \"earthEngineDestination\": { object (/earth-engine/reference/rest/v1alpha/EarthEngineDestination) } // End of list of possible types for union field `destination`. } ``` |\n\n| Fields ||\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `destination`. Where to write the results. `destination` can be only one of the following: ||\n| `earthEngineDestination` | `object (`[EarthEngineDestination](/earth-engine/reference/rest/v1alpha/EarthEngineDestination)`)` If specified, configures export to Earth Engine. |"]]