diff --git a/pdal_ign_macro/macro.py b/pdal_ign_macro/macro.py index 08739c6..cad35e5 100755 --- a/pdal_ign_macro/macro.py +++ b/pdal_ign_macro/macro.py @@ -87,9 +87,10 @@ def build_condition(key, values): """ build 'key==values[0] || key==values[1] ...' """ - condition = "" + condition = "(" for v in values: condition += key + "==" + str(v) if v != values[-1]: condition += " || " + condition += ")" return condition