跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

RS_ScaleX

Introduction: Returns the pixel width of the raster in CRS units.

Note

RS_ScaleX attempts to get an Affine transform on the grid in order to return scaleX (See World File for more details). If the transform on the geometry is not an Affine transform, RS_ScaleX will throw an UnsupportedException:

UnsupportedOperationException("Only AffineTransform2D is supported")

For more information about ScaleX, ScaleY, SkewX, SkewY, please refer to the Affine Transformations section.

RS_ScaleX

Format: RS_ScaleX(raster: Raster)

Return type: Double

Since: v1.5.0

SQL Example

SELECT RS_ScaleX(raster) FROM rasters

Output:

1