ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
Method: projects.locations.thumbnails.create
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি আইডি তৈরি করে যা একটি "থাম্বনেল" চিত্র রেন্ডার করতে ব্যবহার করা যেতে পারে।
এটি GetThumbnailPixels
এর সাথে ব্যবহার করা হয়। thumbnails.create
এ একটি কল একটি অভিব্যক্তি এবং কিছু আউটপুট বিকল্প প্রদান করে। thumbnails.create
এর ফলাফল হল একটি আইডি যা এমন একটি চিত্রকে উপস্থাপন করে যা সেই অভিব্যক্তিটির মূল্যায়ন এবং সেই বিকল্পগুলি প্রয়োগ করার ফলাফল। পরবর্তীকালে, GetThumbnailPixels
এ কল করে সমগ্র ফলাফলের চিত্রের জন্য ইমেজ ডেটা পেতে পারে। আইডি একটি মাঝারি সময়ের জন্য বৈধ হবে (কয়েক ঘন্টা)।
এন্ডপয়েন্টের এই জোড়ার জন্য সবচেয়ে সাধারণ ব্যবহারের ক্ষেত্রে হল thumbnails.create
এ একটি POST-এর মাধ্যমে একটি জটিল অভিব্যক্তি প্রদান করা, এবং তারপর GET থেকে GetThumbnailPixels
এর মাধ্যমে গণনা করা ছবি আনা। এই দুই-অংশের প্রক্রিয়াটি ComputePixels
চেয়ে বেশি পরিস্থিতিতে ব্যবহারের অনুমতি দেয়। বিশেষ করে: - এনকোড করা ইমেজ বাইট পেতে ComputePixels
এর ফলাফলকে খুলে ফেলা দরকার। GetThumbnailPixels
এর ফলাফল সরাসরি ব্রাউজার দ্বারা প্রদর্শিত হতে পারে। - ComputePixels
শুধুমাত্র একটি অনুমোদিত ব্যবহারকারী দ্বারা কল করা যেতে পারে, একটি সঠিকভাবে-স্কোপড OAuth টোকেন ব্যবহার করে। thumbnails.create
এরও একই সীমাবদ্ধতা রয়েছে, কিন্তু GetThumbnailPixels
একটি API কী সমন্বিত URL দিয়ে আবাহন করা যেতে পারে, তাই এটিকে আহ্বানকারী URLগুলি আরও বিস্তৃতভাবে ব্যবহার করা যেতে পারে।
অভিব্যক্তি মূল্যায়নের ফলাফলকে অনুরোধ করা চিত্র বিন্যাসের জন্য কিছু যুক্তিসঙ্গত প্রয়োজনীয়তা পূরণ করতে হবে। বিশেষ করে, JPEG বা PNG ফরম্যাটের জন্য এক বা তিনটি আউটপুট ব্যান্ড এবং ক্লিপ মান 0-255 রেঞ্জের বাইরে থাকা প্রয়োজন।
"থাম্বনেইল" বর্ণনাটি গণনা করা চিত্রের আকারের উপর একটি সীমাবদ্ধতা বোঝায় না: ComputePixels
যেমন thumbnails.create
/ GetThumbnailPixels
এ প্রযোজ্য একই সীমাবদ্ধতা। অনুরোধগুলি পিক্সেলে অনুরোধের মাত্রা, অনুরোধ করা ইমেজ ব্যান্ডের সংখ্যা এবং প্রতিটি ব্যান্ডের জন্য পিক্সেল প্রতি বাইটের সংখ্যা হিসাবে গণনা করা, প্রতি অনুরোধে 48MB সীমাহীন ডেটাতে সীমাবদ্ধ। অনুরোধগুলি সর্বাধিক 32K পিক্সেল উভয় মাত্রা এবং সর্বাধিক 1024 ব্যান্ডে সীমাবদ্ধ। এই সীমা অতিক্রম করার অনুরোধের ফলে একটি ত্রুটি কোড 400 (BAD_REQUEST) হবে৷
HTTP অনুরোধ
POST https://earthengine.googleapis.com/v1/{parent=projects/*/locations/*}/thumbnails
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
parent | string প্রয়োজন। থাম্বনেইল সংগ্রহের মূল (যেমন, "প্রকল্প/*")। অনুমোদনের জন্য নির্দিষ্ট রিসোর্স parent নিম্নলিখিত IAM অনুমতি প্রয়োজন: -
earthengine.thumbnails.create
|
ক্যোয়ারী প্যারামিটার
পরামিতি |
---|
workloadTag | string এই গণনা ট্র্যাক করতে ব্যবহারকারীর সরবরাহকৃত ট্যাগ৷ |
শরীরের অনুরোধ
অনুরোধের অংশে Thumbnail
একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে Thumbnail
একটি সদ্য তৈরি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:
-
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
আরো তথ্যের জন্য, দেখুনOAuth 2.0 Overview .
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003ethumbnails.create\u003c/code\u003e generates an ID for an image created from a provided expression and options, usable with \u003ccode\u003eGetThumbnailPixels\u003c/code\u003e to retrieve the image data.\u003c/p\u003e\n"],["\u003cp\u003eThis two-step process allows broader usage than \u003ccode\u003eComputePixels\u003c/code\u003e, as \u003ccode\u003eGetThumbnailPixels\u003c/code\u003e can be invoked with an API key and its result displayed directly in a browser.\u003c/p\u003e\n"],["\u003cp\u003eWhile called "thumbnail", there's no strict size limitation, but restrictions similar to \u003ccode\u003eComputePixels\u003c/code\u003e apply, with errors for exceeding data, dimension, or band limits.\u003c/p\u003e\n"],["\u003cp\u003eThe generated thumbnail ID is valid for a few hours and the image format must meet requirements, such as specific band numbers for JPEG or PNG.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication is required for \u003ccode\u003ethumbnails.create\u003c/code\u003e, with various OAuth scopes or IAM permissions accepted.\u003c/p\u003e\n"]]],["`thumbnails.create` generates an ID representing an image derived from an expression and output options. This ID, valid for a few hours, is then used with `GetThumbnailPixels` to retrieve the image data. `GetThumbnailPixels` can be invoked via a URL with an API key. Output image formats (JPEG/PNG) need one or three bands and values in the 0-255 range. Image size is limited to 48MB uncompressed, with at most 32K pixels per dimension and 1024 bands. Authorization for creating thumbnails requires IAM permissions.\n"],null,["# Method: projects.locations.thumbnails.create\n\nCreates an ID that can be used to render a \"thumbnail\" image.\n\nThis is used in conjunction with `GetThumbnailPixels`. A call to `thumbnails.create` provides an expression and some output options. The result of `thumbnails.create` is an ID that represents an image that is the result of evaluating that expression and applying those options. Subsequently, calls to `GetThumbnailPixels` can be made to get the image data for the entire resulting image. The ID will be valid for a moderate period (a few hours).\n\nThe most common use case for this pair of endpoints is to provide a complex expression via a POST to `thumbnails.create`, and then fetch the computed image via a GET to `GetThumbnailPixels`. This two-part process allows for use in more situations than `ComputePixels`. In particular: - the result of `ComputePixels` needs to be unwrapped to get the encoded image bytes. The result of `GetThumbnailPixels` can be displayed directly by a browser. - `ComputePixels` can only be called by an authorised user, using a properly-scoped OAuth token. `thumbnails.create` has the same restriction, but `GetThumbnailPixels` can be invoked with a URL containing an API key, so URLs invoking it can be used more broadly.\n\nThe result of evaluating the expression has to meet some reasonable requirements for the requested image format. In particular, JPEG or PNG format requires that there be one or three output bands, and clips values that are outside the 0-255 range.\n\nThe description \"thumbnail\" does not imply a restriction on the size of the computed image: the same restrictions as `ComputePixels` apply to `thumbnails.create`/`GetThumbnailPixels`. Requests are limited to 48MB in uncompressed data per request, computed as the product of the request dimensions in pixels, the number of image bands requested, and the number of bytes per pixel for each band. Requests are also limited to at most 32K pixels in either dimension and at most 1024 bands. 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/*}/thumbnails`\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 thumbnail collection (e.g., \"projects/\\*\"). Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `parent`: - `earthengine.thumbnails.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 [Thumbnail](/earth-engine/reference/rest/v1/projects.locations.thumbnails#Thumbnail).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Thumbnail](/earth-engine/reference/rest/v1/projects.locations.thumbnails#Thumbnail).\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)."]]