ee.String.toLowerCase

  • The toLowerCase() method converts all characters in a string to lowercase.

  • It takes a string as input and returns a new string with all characters in lowercase.

  • Usage examples are provided in JavaScript and Python within the Earth Engine environment.

Converts all of the characters in a string to lower case.

UsageReturns
String.toLowerCase()String
ArgumentTypeDetails
this: stringStringThe string to convert to lower case.

Examples

Code Editor (JavaScript)

var s = ee.String('AaBbCc123');
print(s.toLowerCase());  // aabbcc123

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

import ee
import geemap.core as geemap

Colab (Python)

s = ee.String('AaBbCc123')
print(s.toLowerCase().getInfo())  # aabbcc123