ee.FeatureCollection.draw

यह विज़ुअलाइज़ेशन के लिए, वेक्टर कलेक्शन को पेंट करता है. इसका इस्तेमाल, अन्य एल्गोरिदम के इनपुट के तौर पर नहीं किया जाना चाहिए.

इस्तेमालरिटर्न
FeatureCollection.draw(color, pointRadius, strokeWidth)इमेज
आर्ग्यूमेंटटाइपविवरण
यह: collectionFeatureCollectionड्रॉ किया जाने वाला कलेक्शन.
colorस्ट्रिंगयह RRGGBB फ़ॉर्मैट में हेक्स स्ट्रिंग होती है. इससे यह तय किया जाता है कि सुविधाओं को दिखाने के लिए किस रंग का इस्तेमाल करना है.
pointRadiusपूर्णांक, डिफ़ॉल्ट: 3पॉइंट मार्कर का दायरा, पिक्सल में.
strokeWidthपूर्णांक, डिफ़ॉल्ट: 2लाइन और पॉलीगॉन बॉर्डर की चौड़ाई, पिक्सल में.

उदाहरण

कोड एडिटर (JavaScript)

// 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);

Python सेटअप करना

Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए, Python एनवायरमेंट पेज देखें.

import ee
import geemap.core as geemap

Colab (Python)

# 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