Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] categorize_bool #299

Open
Jomy10 opened this issue Feb 8, 2025 · 0 comments
Open

[Feature request] categorize_bool #299

Jomy10 opened this issue Feb 8, 2025 · 0 comments

Comments

@Jomy10
Copy link

Jomy10 commented Feb 8, 2025

We currnetly have a categorize_int, but a categorize_bool would also be useful.

Example below would add a column which is true when a road is paved.

- name: paved
  type: categorize_bool
  keys: [surface]
  args:
    default: false
    values:
      "paved": true
      "asphalt": true
      "chipseal": true
      "concrete": true
      "concrete:lanes": true
      "concrete:plates": true
      "paving_stones": true
      "paving_stones:lanes": true
      "grass_paver": true
      "sett": true
      "unhewn_cobblestone": true
      "cobblestone": true
      "cobblestone:flattened": true
      "bricks": true
      "metail": true
      "metal_grid": true
      "wood": true
      "stepping_stones": true
      "rubber": true
      "tiles": true
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

No branches or pull requests

1 participant