Reading X and Y coordinate of each grid cell in a raster

1355
3
11-25-2012 11:59 PM
irinivozinaki
New Contributor III
Hello everyone?

Can you please help me in the following?

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?


Thank you very much!!!
Tags (2)
0 Kudos
3 Replies
MarcinGasior
Occasional Contributor III
Look here:
http://gis.stackexchange.com/questions/20783/how-to-get-x-y-coordinates-and-cell-value-of-each-pixel...
for some useful solutions including Raster to Point, output to CSV and direct cell-by-cell calculations...
0 Kudos
irinivozinaki
New Contributor III
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?
0 Kudos
ArkadiuszMatoszka
Occasional Contributor II
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.

http://resources.arcgis.com/en/help/main/10.1/index.html#//018z00000051000000

Cheers
Arek
0 Kudos