Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

RS_LogicalOver

Introduction: Return value from band1 if it's not equal to 0, else return band2 value

Format: RS_LogicalOver (Band1: ARRAY[Double], Band2: ARRAY[Double])

Return type: Array<Double>

Since: v1.1.0

SQL Example

val logicalOver = spark.sql("select RS_LogicalOver(band1, band2) as logover from dataframe")