Skip to main content
Returns a list of the centroid point geometry, the pixel value and its raster X and Y coordinates for each pixel in the raster at the specified band. Each centroid represents the geometric center of the corresponding pixel’s area. RS_PixelAsCentroids

Signatures

Parameters

raster
Raster
required
The input raster.
band
Integer
required
The band index.

Return type

A struct containing the result fields.

Examples

Spark SQL example for extracting Point, value, raster x and y coordinates: