geetools.FeatureCollection.FeatureCollectionAccessor#

class geetools.FeatureCollection.FeatureCollectionAccessor(obj)#

Toolbox for the ee.FeatureCollection class.

Initialize the FeatureCollection class.

Parameters:

obj (ee.FeatureCollection)

Methods#

addId([name, start])

Add a unique numeric identifier, starting from parameter start.

byFeatures([featureId, properties, labels])

Get a dictionary with all property values for each feature.

byProperties([featureId, properties, labels])

Get a dictionary with all feature values for each properties.

mergeGeometries()

Merge the geometries the included features.

plot_by_features([type, featureId, properties, ...])

Plot the values of a ee.FeatureCollection by feature.

plot_by_properties([type, featureId, properties, ...])

Plot the values of a FeatureCollection by property.

plot_hist(property[, label, ax, color])

Plot the histogram of a specific property.

toImage([color, width])

Paint the current FeatureCollection to an Image.

toPolygons()

Drop any geometry that is not a Polygon or a multipolygon.