FeatureCollectionAccessor#

class geetools.ee_feature_collection.FeatureCollectionAccessor(obj)#

Toolbox for the ee.FeatureCollection class.

Initialize the ee.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 property.

fromGeoInterface(data)

Create a ee.FeatureCollection from a geo interface.

mergeGeometries([maxError])

Merge the geometries included in the features.

plot([ax, property, crs, cmap, boundaries, color])

Plot the featureCollection on a map using the provided property.

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 ee.FeatureCollection by property.

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

Plot the histogram of a specific property.

toDictionary([keyColumn, selectors])

Convert to Dictionary.

toImage([color, width])

Paint the current ee.FeatureCollection to an Image.

toPolygons()

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