Raster cell centroid coordinate

Hello,

I have a raster .tiff file projected to UTM. I would like to find out projected coordinates of each of its cell centroids.
Is there a way to do that?

I noticed that by accessing the grid’s Header XllCenter YllCenter properties I can get projected X, Y coordinates of lower left-most cell centroid.
But how do I get the centroid coordinates of each cell?
Thank you in advance for the help.

Attached is the .tiff file.
UTMprojected.zip (50.2 KB)

Hello

I believe that function should help you to get it
ImageToProjection(int Column, int Row, out double ProjX, out double ProjY)

1 Like

Hi @Mariusz ,
Thank you very much!
out ProjX and ProjY are coordinates of a pixel centroid?

image

1 Like

Hi @Mariusz ,
Any reply to this? out ProjX and ProjY are coordinates of a pixel centroid?

1 Like