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 9 months ago

clarisma commented 9 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: