ee.FeatureCollection.draw

ভিজ্যুয়ালাইজেশনের জন্য একটি ভেক্টর সংগ্রহ পেইন্ট করে। অন্যান্য অ্যালগরিদমগুলিতে ইনপুট হিসাবে ব্যবহারের উদ্দেশ্যে নয়।

ব্যবহার রিটার্নস
FeatureCollection. draw (color, pointRadius , strokeWidth ) ছবি
যুক্তি টাইপ বিস্তারিত
এই: collection ফিচার কালেকশন সংগ্রহ আঁকা.
color স্ট্রিং RRGGBB বিন্যাসে একটি হেক্স স্ট্রিং বৈশিষ্ট্যগুলি আঁকার জন্য ব্যবহার করার জন্য রঙ নির্দিষ্ট করে৷
pointRadius পূর্ণসংখ্যা, ডিফল্ট: 3 বিন্দু চিহ্নিতকারীর পিক্সেলে ব্যাসার্ধ।
strokeWidth পূর্ণসংখ্যা, ডিফল্ট: 2 লাইন এবং বহুভুজ সীমানার পিক্সেলে প্রস্থ।

উদাহরণ

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

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

// Paint FeatureCollection to an image for visualization.
var fcVis = fc.draw({color: '800080', pointRadius: 5, strokeWidth: 3});
Map.setCenter(4.56, 50.78, 8);
Map.addLayer(fcVis);

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য 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"'
)

# Paint FeatureCollection to an image for visualization.
fc_vis = fc.draw(color='800080', pointRadius=5, strokeWidth=3)
m = geemap.Map()
m.set_center(4.56, 50.78, 8)
m.add_layer(fc_vis)
m