Returns the serialized representation of this object.
Usage | Returns | FeatureCollection.serialize(legacy) | String |
Argument | Type | Details | this: computedobject | ComputedObject | The ComputedObject instance. |
legacy | Boolean, optional | Enables legacy format. |
Examples
Code Editor (JavaScript)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
print('Serialized representation of ee.FeatureCollection', fc.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)
# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
'country_lg == "Belgium"')
print('Serialized representation of ee.FeatureCollection:',
fc.serialize())