ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অ্যাক্সেস বজায় রাখার জন্য
অবাণিজ্যিক যোগ্যতা যাচাই করতে হবে। আপনি যদি 26 সেপ্টেম্বর, 2025 এর মধ্যে যাচাই না করে থাকেন তবে আপনার অ্যাক্সেস হোল্ডে রাখা হতে পারে।
মতামত জানান
ee.Image.changeProj
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
প্রতিটি পিক্সেলকে srcProj-এ অবস্থান থেকে dstProj-এ একই স্থানাঙ্কে সরিয়ে ইনপুট চিত্রের প্রজেকশনকে পরিবর্তন করে।
ব্যবহার রিটার্নস Image. changeProj (srcProj, dstProj)
ছবি
যুক্তি টাইপ বিস্তারিত এই: input
ছবি srcProj
অভিক্ষেপ মূল অভিক্ষেপ. dstProj
অভিক্ষেপ নতুন অভিক্ষেপ।
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// A DEM image object.
var img = ee . Image ( 'MERIT/DEM/v1_0_3' );
// Construct a projection object from a WKT string or EPSG code, for example,
// the Robinson projection (https://epsg.io/54030).
var proj = ee . Projection (
'PROJCS["World_Robinson",' +
'GEOGCS["GCS_WGS_1984",' +
'DATUM["WGS_1984",' +
'SPHEROID["WGS_1984",6378137,298.257223563]],' +
'PRIMEM["Greenwich",0],' +
'UNIT["Degree",0.017453292519943295]],' +
'PROJECTION["Robinson"],' +
'UNIT["Meter",1]]'
)
// Optionally adjust projection scale; stretch layer larger in this case.
. scale ( 0.9 , 0.9 );
// "Paint" the image in the desired projection onto the projection of
// the map canvas ('EPSG:3857').
var imgProj = img . changeProj ( proj , 'EPSG:3857' );
// Add an overlay image to the map to cover the default base layers.
Map . setCenter ( 0 , 0 , 2 );
Map . addLayer ( ee . Image ( 1 ), { palette : 'grey' }, 'Grey background' , false );
// Add the projection-tweaked image to the map.
Map . addLayer ( imgProj , { min : 0 , max : 3000 }, 'DEM in Robinson projection' ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# A DEM image object.
img = ee . Image ( 'MERIT/DEM/v1_0_3' )
# Construct a projection object from a WKT string or EPSG code, for example,
# the Robinson projection (https://epsg.io/54030).
proj = (
ee . Projection (
'PROJCS["World_Robinson",'
+ 'GEOGCS["GCS_WGS_1984",'
+ 'DATUM["WGS_1984",'
+ 'SPHEROID["WGS_1984",6378137,298.257223563]],'
+ 'PRIMEM["Greenwich",0],'
+ 'UNIT["Degree",0.017453292519943295]],'
+ 'PROJECTION["Robinson"],'
+ 'UNIT["Meter",1]]'
)
# Optionally adjust projection scale stretch layer larger in this case.
. scale ( 0.9 , 0.9 )
)
# "Paint" the image in the desired projection onto the projection of
# the map canvas ('EPSG:3857').
img_proj = img . changeProj ( proj , 'EPSG:3857' )
# Add an overlay image to the map to cover the default base layers.
m = geemap . Map ()
m . set_center ( 0 , 0 , 2 )
m . add_layer ( ee . Image ( 1 ), { 'palette' : 'grey' }, 'Grey background' , False )
# Add the projection-tweaked image to the map.
m . add_layer (
img_proj ,
{ 'min' : 0 , 'max' : 3000 },
'DEM in Robinson projection' ,
)
m ,প্রতিটি পিক্সেলকে srcProj-এ অবস্থান থেকে dstProj-এ একই স্থানাঙ্কে সরিয়ে ইনপুট চিত্রের প্রজেকশনকে পরিবর্তন করে।
ব্যবহার রিটার্নস Image. changeProj (srcProj, dstProj)
ছবি
যুক্তি টাইপ বিস্তারিত এই: input
ছবি srcProj
অভিক্ষেপ মূল অভিক্ষেপ. dstProj
অভিক্ষেপ নতুন অভিক্ষেপ।
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// A DEM image object.
var img = ee . Image ( 'MERIT/DEM/v1_0_3' );
// Construct a projection object from a WKT string or EPSG code, for example,
// the Robinson projection (https://epsg.io/54030).
var proj = ee . Projection (
'PROJCS["World_Robinson",' +
'GEOGCS["GCS_WGS_1984",' +
'DATUM["WGS_1984",' +
'SPHEROID["WGS_1984",6378137,298.257223563]],' +
'PRIMEM["Greenwich",0],' +
'UNIT["Degree",0.017453292519943295]],' +
'PROJECTION["Robinson"],' +
'UNIT["Meter",1]]'
)
// Optionally adjust projection scale; stretch layer larger in this case.
. scale ( 0.9 , 0.9 );
// "Paint" the image in the desired projection onto the projection of
// the map canvas ('EPSG:3857').
var imgProj = img . changeProj ( proj , 'EPSG:3857' );
// Add an overlay image to the map to cover the default base layers.
Map . setCenter ( 0 , 0 , 2 );
Map . addLayer ( ee . Image ( 1 ), { palette : 'grey' }, 'Grey background' , false );
// Add the projection-tweaked image to the map.
Map . addLayer ( imgProj , { min : 0 , max : 3000 }, 'DEM in Robinson projection' ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# A DEM image object.
img = ee . Image ( 'MERIT/DEM/v1_0_3' )
# Construct a projection object from a WKT string or EPSG code, for example,
# the Robinson projection (https://epsg.io/54030).
proj = (
ee . Projection (
'PROJCS["World_Robinson",'
+ 'GEOGCS["GCS_WGS_1984",'
+ 'DATUM["WGS_1984",'
+ 'SPHEROID["WGS_1984",6378137,298.257223563]],'
+ 'PRIMEM["Greenwich",0],'
+ 'UNIT["Degree",0.017453292519943295]],'
+ 'PROJECTION["Robinson"],'
+ 'UNIT["Meter",1]]'
)
# Optionally adjust projection scale stretch layer larger in this case.
. scale ( 0.9 , 0.9 )
)
# "Paint" the image in the desired projection onto the projection of
# the map canvas ('EPSG:3857').
img_proj = img . changeProj ( proj , 'EPSG:3857' )
# Add an overlay image to the map to cover the default base layers.
m = geemap . Map ()
m . set_center ( 0 , 0 , 2 )
m . add_layer ( ee . Image ( 1 ), { 'palette' : 'grey' }, 'Grey background' , False )
# Add the projection-tweaked image to the map.
m . add_layer (
img_proj ,
{ 'min' : 0 , 'max' : 3000 },
'DEM in Robinson projection' ,
)
m
মতামত জানান
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License -এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License -এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
আমাদের আরও কিছু জানাতে চান?
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],["The `changeProj` function modifies an image's projection by relocating each pixel from its original projection (`srcProj`) to a new projection (`dstProj`). This is done by taking an image object as input and takes in two parameters `srcProj` and `dstProj`. For example, it takes a DEM image, defines a Robinson projection with an adjusted scale, and then applies `changeProj` to re-project the image onto the map canvas projection (`EPSG:3857`). The result is an image with the modified projection.\n"]]