Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

RS_CountValue

Introduction: Returns count of a particular value from a spectral band in a raster image

Format: RS_CountValue (Band1: ARRAY[Double], Target: Double)

Since: v1.1.0

SQL Example

val countDF = spark.sql("select RS_CountValue(band1, target) as count from dataframe")