I am reading the value of every grid cell in a raster file. But I also need to read the X, Y coordinates of these grid cells (more specifically the coordinates in the center of each cell). Is there a way to do so?
It is a really good the link that you post it... however I need to get (read) the X, Y coordinates in the center of every cell, in this phase. I don't want to save them in a file... just read them... is there any other way?
Hi, You can read XY of first cell (from raster extent) of raster and cell size, then having row and column number of cell compute coordinates of cell center.