Skip to content

feat: sort featurecollection by area#482

Merged
12rambau merged 2 commits intomainfrom
area-sort
Jan 27, 2026
Merged

feat: sort featurecollection by area#482
12rambau merged 2 commits intomainfrom
area-sort

Conversation

@12rambau
Copy link
Member

@12rambau 12rambau commented Jan 27, 2026

Sorting a featurecollection by area is a very common filter that one would want to apply to a collection. It's not a complicated operation but requires to well understand the concept of mapping so I decided to include it in geetools.

import ee, geetools

fc = ee.FeatureCollection("FAO/GAUL/2015/level0").limit(5)
fc = fc.geetools.areaSort()
fc.aggregate_array("ADM0_NAME").getInfo()

@12rambau 12rambau merged commit 2ef3c0e into main Jan 27, 2026
12 checks passed
@12rambau 12rambau deleted the area-sort branch January 27, 2026 12:09
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