ee.FeatureCollection.union

একটি প্রদত্ত সংগ্রহের সমস্ত জ্যামিতিকে একটিতে একত্রিত করে এবং শুধুমাত্র 'union_result' এর একটি ID এবং একটি জ্যামিতি সহ একটি একক বৈশিষ্ট্য সমন্বিত একটি সংগ্রহ প্রদান করে৷

ব্যবহার রিটার্নস
FeatureCollection. union ( maxError ) ফিচার কালেকশন
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন সংগ্রহ একত্রিত করা হচ্ছে।
maxError ErrorMargin, ডিফল্ট: null যেকোনো প্রয়োজনীয় রিপ্রজেকশন করার সময় সর্বাধিক ত্রুটি অনুমোদিত। নির্দিষ্ট করা না থাকলে, আউটপুট থেকে অনুরোধ করা ত্রুটি মার্জিনে ডিফল্ট।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
            .filter('country_lg == "Belgium"');

print('Original FeatureCollection', fc);

// Merge all geometries into one. A FeatureCollection with a single feature
// with no properties is returned.
print('All geometries merged into one', fc.union(1));

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
    'country_lg == "Belgium"')

print('Original FeatureCollection:', fc.getInfo())

# Merge all geometries into one. A FeatureCollection with a single feature
# with no properties is returned.
print('All geometries merged into one:', fc.union(1).getInfo())