RS_GeoTransform¶
Returns the raster’s geotransform decomposed into a struct of six doubles, matching Sedona Spark’s RS_GeoTransform: magnitudeI and magnitudeJ (pixel sizes along the transformed i and j axes), thetaI (rotation of the raster in radians, positive clockwise), thetaIJ (angle from the transformed i axis to the transformed j axis in radians, positive counter-clockwise), and offsetX and offsetY (the upper-left corner of the upper-left pixel). For the raw affine coefficients instead of this decomposition, use the individual accessors (RS_ScaleX, RS_SkewX, RS_UpperLeftX, …) or RS_GeoReference.
Usage¶
struct RS_GeoTransform(rast: raster)
Arguments¶
- rast (raster): Input raster
Examples¶
SELECT RS_GeoTransform(RS_Example());
┌──────────────────────────────────────────────────────────────────────────────┐
│ rs_geotransform(rs_example()) │
│ struct │
╞══════════════════════════════════════════════════════════════════════════════╡
│ {magnitudeI: 2.23606797749979, magnitudeJ: 2.23606797749979, thetaI: -0.463… │
└──────────────────────────────────────────────────────────────────────────────┘