opengeos / open-buildings

Tools for working with open building datasets
https://opengeos.github.io/open-buildings
Other
124 stars 17 forks source link

Control over attributes requested in `get-buildings` #28

Open cholmes opened 11 months ago

cholmes commented 11 months ago

Right now the get-buildings call just requests all attributes. It'd be nice if we had --include and --exclude flags like tippecanoe does, to give users more control over the attributes they want.

To tackle this issue the get_buildings command in cli.py should have two more flags added, and then download_buildings should get them in. Then the select_values variable should be tweaked with the right logic. Can leverage DuckDB's exclude command to form the sql, and the include would just pass the values in. It'd likely make sense to just not allow a user to use both include and exclude, as that'd be funky logic to get right.