ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
Method: projects.image.computePixels
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ইমেজ ডেটাতে নির্বিচারে গণনা করে পিক্সেলের একটি টাইল গণনা করে।
অনুরোধগুলি পিক্সেলে অনুরোধের মাত্রা, অনুরোধ করা ইমেজ ব্যান্ডের সংখ্যা এবং প্রতিটি ব্যান্ডের জন্য পিক্সেল প্রতি বাইটের সংখ্যা হিসাবে গণনা করা, প্রতি অনুরোধে 48MB সীমাহীন ডেটাতে সীমাবদ্ধ। অনুরোধগুলি সর্বাধিক 32K পিক্সেল উভয় মাত্রা এবং সর্বাধিক 1024 ব্যান্ডে সীমাবদ্ধ। এই সীমা অতিক্রম করার অনুরোধের ফলে একটি ত্রুটি কোড 400 (BAD_REQUEST) হবে৷
সফল হলে, প্রতিক্রিয়া বডিতে অনুরোধের fileFormat
ক্ষেত্রে নির্দিষ্ট এনকোডিং-এ অনুরোধ করা পিক্সেল ডেটা থাকে।
HTTP অনুরোধ
POST https://earthengine.googleapis.com/v1beta/{project=projects/*}/image:computePixels
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
project | string Google ক্লাউড প্ল্যাটফর্ম প্রোজেক্টের প্রোজেক্ট আইডি বা প্রোজেক্ট নম্বর যেটিকে এই অনুরোধের জন্য পরিষেবা গ্রাহক হিসাবে বিবেচনা করা উচিত। ফরম্যাট হল projects/{project-id} । অনুমোদনের জন্য নির্দিষ্ট সংস্থান project নিম্নলিখিত IAM অনুমতি প্রয়োজন: -
earthengine.computations.create
|
শরীরের অনুরোধ
অনুরোধের অংশে নিম্নলিখিত কাঠামো সহ ডেটা রয়েছে:
ক্ষেত্র |
---|
expression | object ( Expression ) গণনা করার অভিব্যক্তি। |
fileFormat | enum ( ImageFileFormat ) আউটপুট ফাইল বিন্যাস যেখানে পিক্সেল মান ফেরত দিতে হবে। |
grid | object ( PixelGrid ) expression দ্বারা গণনা করা চিত্রটি কীভাবে পুনঃপ্রকল্পিত এবং ক্লিপ করা উচিত তা বর্ণনা করে প্যারামিটার। উপস্থিত না থাকলে, সম্পূর্ণ গণনা করা চিত্রটি তার নেটিভ প্রজেকশনে ফিরিয়ে দেওয়া হয়। |
bandIds[] | string উপস্থিত থাকলে, ব্যান্ডের একটি নির্দিষ্ট সেট নির্দিষ্ট করে যা expression মূল্যায়নের ফলাফল থেকে নির্বাচন করা হবে। উপস্থিত না হলে, expression ফলে সমস্ত ব্যান্ড নির্বাচন করা হবে। |
visualizationOptions | object ( VisualizationOptions ) উপস্থিত থাকলে, ডেটার একটি 8-বিট RGB ভিজ্যুয়ালাইজেশন তৈরি করতে ভিজ্যুয়ালাইজেশন বিকল্পগুলির একটি সেট প্রয়োগ করতে হবে। |
workloadTag | string এই গণনা ট্র্যাক করতে ব্যবহারকারীর সরবরাহকৃত ট্যাগ৷ |
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া একটি জেনেরিক HTTP প্রতিক্রিয়া যার বিন্যাস পদ্ধতি দ্বারা সংজ্ঞায়িত করা হয়।
অনুমোদনের সুযোগ
নিম্নলিখিত 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-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThis API computes a tile of pixels by performing a user-defined computation on image data using an expression.\u003c/p\u003e\n"],["\u003cp\u003eRequests are limited to 48MB of uncompressed data and specific dimensions, exceeding which results in a 400 error.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses contain pixel data in the specified file format, encoded within the HTTP response body.\u003c/p\u003e\n"],["\u003cp\u003eThe API requires authorization using specific OAuth scopes like \u003ccode\u003ehttps://www.googleapis.com/auth/earthengine\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the projection, clipping, band selection, and visualization options for the computed image within the request.\u003c/p\u003e\n"]]],["This API computes a tile of pixels from image data via an arbitrary expression. Input parameters include `expression`, `fileFormat`, `grid`, `bandIds`, `visualizationOptions`, and `workloadTag`. Requests are limited to 48MB of uncompressed data, 32K pixels per dimension, and 1024 bands, returning a 400 error code if these limits are exceeded. A successful request returns pixel data in the specified `fileFormat`, with authorization requiring specific OAuth scopes.\n"],null,["# Method: projects.image.computePixels\n\nComputes a tile of pixels by performing an arbitrary computation on image data.\n\nRequests 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\nIf successful, the response body contains the requested pixel data in the encoding specified in the `fileFormat` field of the request.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1beta/{project=projects/*}/image:computePixels`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | `string` 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.computations.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/v1beta/Expression) }, \"fileFormat\": enum (/earth-engine/reference/rest/v1beta/ImageFileFormat), \"grid\": { object (/earth-engine/reference/rest/v1beta/PixelGrid) }, \"bandIds\": [ string ], \"visualizationOptions\": { object (/earth-engine/reference/rest/v1beta/VisualizationOptions) }, \"workloadTag\": string } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `expression` | `object (`[Expression](/earth-engine/reference/rest/v1beta/Expression)`)` The expression to compute. |\n| `fileFormat` | `enum (`[ImageFileFormat](/earth-engine/reference/rest/v1beta/ImageFileFormat)`)` The output file format in which to return the pixel values. |\n| `grid` | `object (`[PixelGrid](/earth-engine/reference/rest/v1beta/PixelGrid)`)` Parameters describing how the image computed by `expression` should be reprojected and clipped. If not present, the full computed image is returned in its native projection. |\n| `bandIds[]` | `string` If present, specifies a specific set of bands that will be selected from the result of evaluating `expression`. If not present, all bands resulting from `expression` will be selected. |\n| `visualizationOptions` | `object (`[VisualizationOptions](/earth-engine/reference/rest/v1beta/VisualizationOptions)`)` If present, a set of visualization options to apply to produce an 8-bit RGB visualization of the data. |\n| `workloadTag` | `string` User supplied tag to track this computation. |\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)."]]