Skip to main content
Returns a point geometry of the specified pixel’s upper-left corner. The pixel coordinates specified are 1-indexed. RS_PixelAsPoint
If colX or rowY is outside the raster grid, the coordinate is extrapolated using the raster’s scale, skew, and translation.

Signatures

Parameters

Raster
required
The input raster.
Integer
required
The col x value.
Integer
required
The row y value.

Return type

The resulting geometry.

Examples

The raster below is five pixels wide. Column 6 is immediately past the right edge; its upper-left corner lies on that edge at x = 123 + 5 × 8 = 163.