Kamal Hosen
Kamal Hosen
Geospatial Developer | Data Science | Python

Apr 08, 2023

Metadata - Get Details about Vector Data in Earth Engine


Metadata is essential data for understanding the data in detail. Earth Engine provides ee.Feature class to access the metadata for vector data.


To retrieve the metadata of a feature, you can use the getInfo() method, which returns a JSON object containing all the feature's properties. For example:

// Load a feature collection.
var fc = ee.FeatureCollection('TIGER/2018/States');

// Get a feature from the collection.
var feature = fc.first();

// Get the metadata of the feature.
var metadata = feature.getInfo();

// Print the metadata to the console.

This will print the metadata of the first feature in the 'TIGER/2018/States' feature collection to the console.

// Get the geometry of the feature.
var geometry = feature.geometry();

// Print the geometry to the console.


Share To

About Author
  • Kamal Hosen
  • Kamal Hosen
    Geospatial Developer | Data Science | Python

    A passionate geospatial developer and analyst whose core interest is developing geospatial products/services to support the decision-making process in climate change and disaster risk reduction, spatial planning process, natural resources management, and land management sectors. I love learning and working with open source technologies like Python, Django, LeafletJS, PostGIS, GeoServer, and Google Earth Engine.