ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
Method: projects.thumbnails.create
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি আইডি তৈরি করে যা একটি "থাম্বনেল" চিত্র রেন্ডার করতে ব্যবহার করা যেতে পারে।
এটি thumbnails.getPixels
এর সাথে ব্যবহার করা হয়। thumbnails.create
এ একটি কল একটি অভিব্যক্তি এবং কিছু আউটপুট বিকল্প প্রদান করে। thumbnails.create
এর ফলাফল হল একটি আইডি যা এমন একটি চিত্রকে উপস্থাপন করে যা সেই অভিব্যক্তিটির মূল্যায়ন এবং সেই বিকল্পগুলি প্রয়োগ করার ফলাফল। পরবর্তীকালে, thumbnails.getPixels
এ কল করে সমগ্র ফলাফলের চিত্রের জন্য ইমেজ ডেটা পেতে পারে। আইডি একটি মাঝারি সময়ের জন্য বৈধ হবে (কয়েক ঘন্টা)।
এই জোড়ার এন্ডপয়েন্টের জন্য সবচেয়ে সাধারণ ব্যবহারের ক্ষেত্রে হল thumbnails.create
এ POST-এর মাধ্যমে একটি জটিল অভিব্যক্তি প্রদান করা, এবং তারপর thumbnails.getPixels
এ GET-এর মাধ্যমে গণনা করা ছবি আনা। এই দুই-অংশের প্রক্রিয়াটি ComputePixels
চেয়ে বেশি পরিস্থিতিতে ব্যবহারের অনুমতি দেয়। বিশেষ করে: - এনকোড করা ইমেজ বাইট পেতে ComputePixels
এর ফলাফলকে খুলে ফেলা দরকার। thumbnails.getPixels
এর ফলাফল সরাসরি ব্রাউজার দ্বারা প্রদর্শিত হতে পারে। - ComputePixels
শুধুমাত্র একটি অনুমোদিত ব্যবহারকারী দ্বারা কল করা যেতে পারে, একটি সঠিকভাবে-স্কোপড OAuth টোকেন ব্যবহার করে। thumbnails.create
একই সীমাবদ্ধতা রয়েছে, কিন্তু thumbnails.getPixels
একটি API কী সম্বলিত URL দিয়ে আহ্বান করা যেতে পারে, তাই এটি চালু করা URLগুলি আরও বিস্তৃতভাবে ব্যবহার করা যেতে পারে।
অভিব্যক্তি মূল্যায়নের ফলাফলকে অনুরোধ করা চিত্র বিন্যাসের জন্য কিছু যুক্তিসঙ্গত প্রয়োজনীয়তা পূরণ করতে হবে। বিশেষ করে, JPEG বা PNG ফরম্যাটের জন্য এক বা তিনটি আউটপুট ব্যান্ড এবং ক্লিপ মান 0-255 রেঞ্জের বাইরে থাকা প্রয়োজন।
বর্ণনা "থাম্বনেইল" গণনা করা চিত্রের আকারের উপর সীমাবদ্ধতা বোঝায় না: ComputePixels
যেমন thumbnails.create
/ thumbnails.getPixels
এ প্রযোজ্য একই সীমাবদ্ধতা। অনুরোধগুলি পিক্সেলে অনুরোধের মাত্রা, অনুরোধ করা ইমেজ ব্যান্ডের সংখ্যা এবং প্রতিটি ব্যান্ডের জন্য পিক্সেল প্রতি বাইটের সংখ্যা হিসাবে গণনা করা, প্রতি অনুরোধে 48MB সীমাহীন ডেটাতে সীমাবদ্ধ। অনুরোধগুলি সর্বাধিক 32K পিক্সেল উভয় মাত্রা এবং সর্বাধিক 1024 ব্যান্ডে সীমাবদ্ধ। এই সীমা অতিক্রম করার অনুরোধের ফলে একটি ত্রুটি কোড 400 (BAD_REQUEST) হবে৷
HTTP অনুরোধ
POST https://earthengine.googleapis.com/v1alpha/{parent=projects/*}/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 representing an image created from an expression and output options, usable with \u003ccode\u003ethumbnails.getPixels\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ethumbnails.getPixels\u003c/code\u003e retrieves image data using the ID from \u003ccode\u003ethumbnails.create\u003c/code\u003e, offering broader usage than \u003ccode\u003eComputePixels\u003c/code\u003e due to API key accessibility.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting image must adhere to format requirements (e.g., JPEG/PNG need 1-3 bands, values within 0-255).\u003c/p\u003e\n"],["\u003cp\u003eWhile called "thumbnail", image size is subject to the same limits as \u003ccode\u003eComputePixels\u003c/code\u003e, with restrictions on dimensions, bands, and data size to prevent errors.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves a POST request to \u003ccode\u003ethumbnails.create\u003c/code\u003e to provide the expression, followed by a GET request to \u003ccode\u003ethumbnails.getPixels\u003c/code\u003e to fetch the image.\u003c/p\u003e\n"]]],[],null,["# Method: projects.thumbnails.create\n\nCreates an ID that can be used to render a \"thumbnail\" image.\n\nThis is used in conjunction with `thumbnails.getPixels`. 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 `thumbnails.getPixels` 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 `thumbnails.getPixels`. 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 `thumbnails.getPixels` 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 `thumbnails.getPixels` 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`/`thumbnails.getPixels`. 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/v1alpha/{parent=projects/*}/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/v1alpha/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/v1alpha/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)."]]