Returns a list of the pixel’s upper-left corner point geometry, the pixel value and its raster X and Y coordinates for each pixel in the raster at the specified band.
Spark SQL example for extracting Point, value, raster x and y coordinates:
val pointDf = sedona.read...val rasterDf = sedona.read.format("binaryFile").load("/some/path/*.tiff")var df = sedona.read.format("binaryFile").load("/some/path/*.tiff")df = df.selectExpr("RS_FromGeoTiff(content) as raster")df.selectExpr( "explode(RS_PixelAsPoints(raster, 1)) as exploded").selectExpr( "exploded.geom as geom", "exploded.value as value", "exploded.x as x", "exploded.y as y").show(3)