ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অ্যাক্সেস বজায় রাখার জন্য
অবাণিজ্যিক যোগ্যতা যাচাই করতে হবে। আপনি যদি 26 সেপ্টেম্বর, 2025 এর মধ্যে যাচাই না করে থাকেন তবে আপনার অ্যাক্সেস হোল্ডে রাখা হতে পারে।
মতামত জানান
ee.FeatureCollection.merge
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটিতে দুটি সংগ্রহকে একত্রিত করে৷ ফলাফল উভয় সংগ্রহে ছিল যে সব উপাদান আছে.
প্রথম সংগ্রহের উপাদানগুলির আইডিগুলি "1 " দিয়ে প্রিফিক্স করা হবে এবং দ্বিতীয় সংগ্রহের উপাদানগুলির আইডিগুলির সাথে "2" উপসর্গ থাকবে ৷
দ্রষ্টব্য: যদি অনেকগুলি সংগ্রহ একত্রিত করার প্রয়োজন হয়, সেগুলিকে একটি সংগ্রহে রাখার এবং পরিবর্তে FeatureCollection.flatten() ব্যবহার করার কথা বিবেচনা করুন৷ FeatureCollection.merge() এর বারবার ব্যবহারের ফলে ক্রমবর্ধমান দীর্ঘ উপাদান ID এবং কর্মক্ষমতা হ্রাস পাবে। ব্যবহার রিটার্নস FeatureCollection. merge (collection2)
ফিচার কালেকশন
যুক্তি টাইপ বিস্তারিত এই: collection1
ফিচার কালেকশন প্রথম সংগ্রহ একত্রীকরণ. collection2
ফিচার কালেকশন দ্বিতীয় সংগ্রহ একত্রীকরণ.
উদাহরণ কোড এডিটর (জাভাস্ক্রিপ্ট)
// FeatureCollection of points representing forest cover.
var fcForest = ee . FeatureCollection ([
ee . Feature ( ee . Geometry . Point ([ - 122.248 , 37.238 ]),
{ 'id' : 0 , 'cover_class' : 'forest' }),
ee . Feature ( ee . Geometry . Point ([ - 122.204 , 37.222 ]),
{ 'id' : 1 , 'cover_class' : 'forest' }),
ee . Feature ( ee . Geometry . Point ([ - 122.110 , 37.199 ]),
{ 'id' : 2 , 'cover_class' : 'forest' })
]);
// FeatureCollection of points representing urban cover.
var fcUrban = ee . FeatureCollection ([
ee . Feature ( ee . Geometry . Point ([ - 121.953 , 37.372 ]),
{ 'id' : 0 , 'cover_class' : 'urban' }),
ee . Feature ( ee . Geometry . Point ([ - 121.861 , 37.308 ]),
{ 'id' : 1 , 'cover_class' : 'urban' }),
ee . Feature ( ee . Geometry . Point ([ - 121.984 , 37.372 ]),
{ 'id' : 2 , 'cover_class' : 'urban' })
]);
// Merge the two FeatureCollections into one.
var fcMerged = fcForest . merge ( fcUrban );
// Display FeatureCollections on the map.
Map . setCenter ( - 122.034 , 37.296 , 11 );
Map . addLayer ( fcForest , { color : 'green' }, 'Forest points' );
Map . addLayer ( fcUrban , { color : 'grey' }, 'Urban points' );
Map . addLayer ( fcMerged , { color : 'yellow' }, 'Protected areas merged' ); পাইথন সেটআপ
পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap
ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।
import ee
import geemap.core as geemap Colab (পাইথন)
# FeatureCollection of points representing forest cover.
fc_forest = ee . FeatureCollection ([
ee . Feature (
ee . Geometry . Point ([ - 122.248 , 37.238 ]),
{
'id' : 0 ,
'cover_class' : 'forest' ,
'id' : 0 ,
'cover_class' : 'forest' ,
},
),
ee . Feature (
ee . Geometry . Point ([ - 122.204 , 37.222 ]),
{
'id' : 1 ,
'cover_class' : 'forest' ,
'id' : 1 ,
'cover_class' : 'forest' ,
},
),
ee . Feature (
ee . Geometry . Point ([ - 122.110 , 37.199 ]),
{
'id' : 2 ,
'cover_class' : 'forest' ,
'id' : 2 ,
'cover_class' : 'forest' ,
},
),
])
# FeatureCollection of points representing urban cover.
fc_urban = ee . FeatureCollection ([
ee . Feature (
ee . Geometry . Point ([ - 121.953 , 37.372 ]),
{ 'id' : 0 , 'cover_class' : 'urban' , 'id' : 0 , 'cover_class' : 'urban' },
),
ee . Feature (
ee . Geometry . Point ([ - 121.861 , 37.308 ]),
{ 'id' : 1 , 'cover_class' : 'urban' , 'id' : 1 , 'cover_class' : 'urban' },
),
ee . Feature (
ee . Geometry . Point ([ - 121.984 , 37.372 ]),
{ 'id' : 2 , 'cover_class' : 'urban' , 'id' : 2 , 'cover_class' : 'urban' },
),
])
# Merge the two FeatureCollections into one.
fc_merged = fc_forest . merge ( fc_urban )
# Display FeatureCollections on the map.
m = geemap . Map ()
m . set_center ( - 122.034 , 37.296 , 11 )
m . add_layer ( fc_forest , { 'color' : 'green' }, 'Forest points' )
m . add_layer ( fc_urban , { 'color' : 'grey' }, 'Urban points' )
m . add_layer ( fc_merged , { 'color' : 'yellow' }, 'Protected areas merged' )
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-তে শেষবার আপডেট করা হয়েছে।"],[],[]]