Method: projects.locations.filmstripThumbnails.create
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 một mã nhận dạng có thể dùng để hiển thị một hình ảnh chứa nhiều hình ảnh từ một bộ sưu tập.
Phương thức này được dùng cùng với GetFilmstripThumbnailPixels
. Lệnh gọi đến filmstripThumbnails.create
cung cấp một biểu thức và một số tuỳ chọn đầu ra. Kết quả của filmstripThumbnails.create
là một mã nhận dạng đại diện cho hình ảnh là kết quả của việc đánh giá biểu thức đó và áp dụng các tuỳ chọn đó. Sau đó, bạn có thể thực hiện lệnh gọi đến GetFilmstripThumbnailPixels
để lấy hình ảnh hiển thị tất cả các phần tử của ImageCollection, được nối từ trên xuống dưới hoặc từ bên này sang bên kia. Giấy tờ tuỳ thân này sẽ có hiệu lực trong một khoảng thời gian vừa phải (vài giờ).
Yêu cầu này bị giới hạn ở tổng cộng 512*512*100 pixel trên tất cả Hình ảnh trong ImageCollection. Các yêu cầu vượt quá các giới hạn này sẽ dẫn đến mã lỗi 400 (BAD_REQUEST).
Yêu cầu HTTP
POST https://earthengine.googleapis.com/v1/{parent=projects/*/locations/*}/filmstripThumbnails
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Phần tử mẹ của vị trí sẽ tạo hình thu nhỏ của băng hình (ví dụ: "projects/*").
Việc uỷ quyền yêu cầu quyền IAM sau đây trên tài nguyên parent đã chỉ định:
earthengine.filmstripthumbnails.create
|
Tham số truy vấn
Thông số |
workloadTag |
string
Thẻ do người dùng cung cấp để theo dõi phép tính này.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của FilmstripThumbnail
.
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 thực thể FilmstripThumbnail
mới tạo.
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\u003eGenerates an ID, usable with \u003ccode\u003eGetFilmstripThumbnailPixels\u003c/code\u003e, to render a single image composed of multiple images from an ImageCollection.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003efilmstripThumbnails.create\u003c/code\u003e takes an expression and output options, returning an ID representing the combined image.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetFilmstripThumbnailPixels\u003c/code\u003e uses the ID to fetch the image, arranging ImageCollection elements vertically or horizontally.\u003c/p\u003e\n"],["\u003cp\u003eTotal pixel limit across all images is 512*512*100, exceeding this results in a 400 (BAD_REQUEST) error.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific IAM permission (\u003ccode\u003eearthengine.filmstripthumbnails.create\u003c/code\u003e) and one of the listed OAuth scopes for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.filmstripThumbnails.create\n\nCreates an ID that can be used to render an image containing multiple images from a collection.\n\nThis is used in conjunction with `GetFilmstripThumbnailPixels`. A call to `filmstripThumbnails.create` provides an expression and some output options. The result of `filmstripThumbnails.create` is an ID that represents an image that is the result of evaluating that expression and applying those options. Subsequently, calls to `GetFilmstripThumbnailPixels` can be made to get an image showing all of the elements of an ImageCollection, concatenated top-to-bottom or side-to-side. The ID will be valid for a moderate period (a few hours).\n\nThe request is limited to 512\\*512\\*100 pixels in total, across all Images in the ImageCollection. Requests exceeding these limits will result in an error code of 400 (BAD_REQUEST).\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1/{parent=projects/*/locations/*}/filmstripThumbnails`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The parent of the location where the filmstrip thumbnail will be created (e.g., \"projects/\\*\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `earthengine.filmstripthumbnails.create` |\n\n### Query parameters\n\n| Parameters ||\n|---------------|-------------------------------------------------------|\n| `workloadTag` | `string` User supplied tag to track this computation. |\n\n### Request body\n\nThe request body contains an instance of [FilmstripThumbnail](/earth-engine/reference/rest/v1/projects.filmstripThumbnails#FilmstripThumbnail).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [FilmstripThumbnail](/earth-engine/reference/rest/v1/projects.filmstripThumbnails#FilmstripThumbnail).\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)."]]