breakGeometries#
- geetools.ee_feature_collection.FeatureCollectionAccessor.breakGeometries()#
Break every feature using geometries into it’s constituents.
Each Geometry that is using a multi parts geometry type will be duplicated into multiple features with each one carrying one of the constituent of the multiPolygon.
- Returns:
The collection with the broken down geometries
- Return type:
Examples
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() multipoint = ee.Geometry.MultiPoint([ee.Geometry.Point([0, 0]), ee.Geometry.Point([1, 0])]) fc = ee.FeatureCollection([ee.Feature(multipoint, {"test": "test"})]) fc = fc.geetools.breakGeometries() fc.aggregate_array("test").getInfo()