Skip to content

RS_PixelAsCentroid

Returns the centroid of the specified pixel as a Point geometry.

Usage

geometry RS_PixelAsCentroid(rast: raster, colX: integer, rowY: integer)

Arguments

  • rast (raster): Input raster
  • colX (integer)
  • rowY (integer)

Examples

SELECT RS_PixelAsCentroid(RS_Example(), 1, 1);
┌────────────────────────────────────────────────────┐
│ rs_pixelascentroid(rs_example(),Int64(1),Int64(1)) │
│                       struct                       │
╞════════════════════════════════════════════════════╡
│ {item: POINT(44.58 80.57), crs: OGC:CRS84}         │
└────────────────────────────────────────────────────┘