ee.Number.serialize

  • The Number.serialize() method returns the serialized representation of a Number object as a String.

  • It can optionally take a legacy boolean argument to enable a legacy format.

  • Examples are provided for both JavaScript and Python environments.

Returns the serialized representation of this object.
Usage Returns
Number. serialize ( legacy ) String
Argument Type Details
this: computedobject
ComputedObject The ComputedObject instance.
legacy
Boolean, optional Enables legacy format.

Examples

Code Editor (JavaScript)

 print 
 ( 
 'Serialized representation of ee.Number' 
 , 
  
 ee 
 . 
 Number 
 ( 
 10 
 ). 
 serialize 
 ()); 

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)

 display 
 ( 
 'Serialized representation of ee.Number:' 
 , 
 ee 
 . 
 Number 
 ( 
 10 
 ) 
 . 
 serialize 
 ()) 
Design a Mobile Site
View Site in Mobile | Classic
Share by: