You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defisForest(tags: Column):Column=
array_contains(splitDelimitedValues(tags.getItem("landuse")), "forest") as 'isForest
Let's see if we can fold up the array_contains and splitDelimitedValues to avoid mistakes when creating new functions.
This may make it easier to implement complex checks like:
defisLake(tags: Column):Column=
(array_contains(splitDelimitedValues(tags.getItem("natural")), "water") and
(tags("water").isNull or
not(array_contains(splitDelimitedValues(tags.getItem("water")), "river") or
array_contains(splitDelimitedValues(tags.getItem("water")), "canal")
)
)
) as 'isLake
The text was updated successfully, but these errors were encountered:
Right now, boilerplate looks like:
Let's see if we can fold up the
array_contains
andsplitDelimitedValues
to avoid mistakes when creating new functions.This may make it easier to implement complex checks like:
The text was updated successfully, but these errors were encountered: