Skip to content
Apache Sedona 1.9.0 is out now, featuring Spark 4.1 support, proj4sedona CRS transformation, Bing Tile functions, and more!

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")