ee.FeatureCollection.serialize

Returns the serialized representation of this object.

UsageReturns
FeatureCollection.serialize(legacy)String
ArgumentTypeDetails
this: computedobjectComputedObjectThe ComputedObject instance.
legacyBoolean, optionalEnables legacy format.

Examples

// 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());

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

import ee
import geemap.core as geemap
# 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())