ee.FeatureCollection.draw

ビジュアリゼーション用のベクトル コレクションを描画します。他のアルゴリズムへの入力として使用することを意図していません。

用途戻り値
FeatureCollection.draw(color, pointRadius, strokeWidth)画像
引数タイプ詳細
これ: collectionFeatureCollection描画するコレクション。
color文字列対象物の描画に使用する色を指定する RRGGBB 形式の 16 進文字列。
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