clarisma / geodesk-py

Fast and storage-efficient spatial database engine for OpenStreetMap data
https://docs.geodesk.com/python
GNU Lesser General Public License v3.0
36 stars 0 forks source link

Implement `Features.filter()` for user-defined predicates #25

Open clarisma opened 11 months ago

clarisma commented 11 months ago

Allow users to select features using Python functions or lambdas, similar to Python's built-in filter(), e.g.:

world.filter(lambda feature: feature.area > 200)
restaurants.filter(is_open_today)

Challenges: