Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to convert raster cells into points. I use Idrisi and I need to generate a table containing xy (coordinates) and z (cell value).

share|improve this question

If it is a single band raster, you can use gdal_translate:

kyle@kyle-workstation:Desktop$ gdal_translate -b 1 -of XYZ -co ADD_HEADER_LINE=YES kyle.png
Input file size is 992, 744
0...10...20...30...40...50...60...70...80...90...100 - done.
kyle@kyle-workstation:Desktop$ head 
0.5 0.5 208
1.5 0.5 211
2.5 0.5 210
3.5 0.5 211
4.5 0.5 208
5.5 0.5 211
6.5 0.5 209
7.5 0.5 210
8.5 0.5 211

-b is band selection, the -co adds the header line.

share|improve this answer

Try this in IDRISI 17.0 export--->general convertions tools--->XYZ IDRISI

share|improve this answer
Thanks for the commet but xyz idris export tool is for vector data only (at least in Taiga). I need to get the cell values of an image in tabular for. – juan Apr 7 '12 at 15:34
First convert your raster to vector and then do as I said before (export) will get x,y,z file – Dr. A.D.Prasad Apr 7 '12 at 15:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.