Skip to main content
Returns the pixel width of the raster in CRS units.
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

Signatures

RS_ScaleX(raster: Raster)

Parameters

raster
Raster
required
The input raster.

Return type

A numeric value.

Example

SELECT RS_ScaleX(raster) FROM rasters
1