ee.String

新しい String を構築します。

用途戻り値
ee.String(string)文字列
引数タイプ詳細
stringObject|String文字列または計算されたオブジェクト。

コードエディタ(JavaScript)

print(ee.String('I am a string'));  // I am a string

// Strings can use emoji.
print(ee.String('🧲⚡️👀'));  // 🧲⚡️👀

// Empty string.
var empty = ee.String('');
print(empty);  // ''
print(empty.length());  // 0

Python の設定

Python API とインタラクティブな開発での geemap の使用については、 Python 環境のページをご覧ください。

import ee
import geemap.core as geemap

Colab(Python)

print(ee.String('I am a string').getInfo())  # I am a string

# Strings can use emoji.
print(ee.String('🧲⚡️👀').getInfo())  # 🧲⚡️👀

# Empty string.
empty = ee.String('')
print(empty.getInfo())  # ''
print(empty.length().getInfo())  # 0