ee.FeatureCollection.filter

Apply a filter to this collection.

Returns the filtered collection.

UsageReturns
FeatureCollection.filter(filter)Collection
ArgumentTypeDetails
this: collectionCollection

The Collection instance.

filterFilter

A filter to apply to this collection.

Examples

JavaScript

// Get Denver county polygon.
var denver = ee.FeatureCollection('FAO/GAUL_SIMPLIFIED_500m/2015/level2')
    .filter("ADM2_NAME == 'Denver'")
    .filter(ee.Filter.eq('ADM2_NAME', 'Denver'))  // Exactly the same as above.
    .first()
    .geometry();

Map.centerObject(denver, 9);
Map.addLayer(denver, null, 'Denver');

Python

# Your example goes here!