Method: projects.thumbnails.getPixels
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ính toán hình ảnh cho thấy kết quả của một phép tính. Yêu cầu này bao gồm các giá trị (mã nhận dạng và mã uỷ quyền) từ một yêu cầu thumbnails.create
trước đó.
Yêu cầu HTTP
GET https://earthengine.googleapis.com/v1alpha/{name=projects/*/thumbnails/*}:getPixels
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
name |
string
Bắt buộc. Tên hình thu nhỏ từ Thumbnail.name .
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, phản hồi sẽ là một phản hồi HTTP chung có định dạng do phương thức xác định.
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/earthengine.readonly
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
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\u003eRetrieves computed imagery pixels based on a previous \u003ccode\u003ethumbnails.create\u003c/code\u003e request using its ID and authorization token.\u003c/p\u003e\n"],["\u003cp\u003eUses a \u003ccode\u003eGET\u003c/code\u003e request to the specified endpoint with the thumbnail name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eRequires empty request body and returns a generic HTTP response containing the image data.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific OAuth scopes for accessing and reading Earth Engine data.\u003c/p\u003e\n"]]],["This outlines the `getPixels` method for retrieving a computed image. It uses a `GET` request to the specified URL, with the required `name` parameter (a thumbnail ID) in the path. The request body is empty. A successful response returns the image data. Authorization requires specific OAuth scopes, including `earthengine` and `cloud-platform` related permissions. The request utilizes values obtained from a prior `thumbnails.create` call.\n"],null,["# Method: projects.thumbnails.getPixels\n\nComputes an image showing the result of a computation. The request includes values (an ID and authorisation token) from a previous `thumbnails.create` request.\n\n### HTTP request\n\n`GET https://earthengine.googleapis.com/v1alpha/{name=projects/*/thumbnails/*}:getPixels`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------|\n| `name` | `string` Required. A thumbnail name from `Thumbnail.name`. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response is a generic HTTP response whose format is defined by the method.\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/earthengine.readonly`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/cloud-platform.read-only`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]