Skip to content

feat: filter per geometry Type#484

Merged
12rambau merged 3 commits intomainfrom
filter-geometry-type
Jan 27, 2026
Merged

feat: filter per geometry Type#484
12rambau merged 3 commits intomainfrom
filter-geometry-type

Conversation

@12rambau
Copy link
Member

@12rambau 12rambau commented Jan 27, 2026

Sometime we want to perform vector operation on the FC like any other vector storage format but we are often facing issues in geometrical operation when such a featurecollection is not composed of consistent geometry types. This method ensure that all the features are filter thanks to their actual geoemtry parameter:

import ee, geetools

geoms = [ee.Geometry.Point([0, 0]), ee.Geometry.Point([0, 0]).buffer(1)]
fc = ee.FeatureCollection([ee.Feature(g, {"test": "test"}) for g in geoms])
fc = fc.ldc.breakGeometries().ldc.filterGeometryType("Point")
fc.aggregate_array("test").getInfo()

@12rambau 12rambau merged commit 49657b2 into main Jan 27, 2026
12 checks passed
@12rambau 12rambau deleted the filter-geometry-type branch January 27, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant