Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

2 Answers

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 test.xyz
Input file size is 992, 744
0...10...20...30...40...50...60...70...80...90...100 - done.
kyle@kyle-workstation:Desktop$ head test.xyz 
X Y Z
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
add comment

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)..you will get x,y,z file –  A.D.Prasad Apr 7 '12 at 15:57
add comment

Your Answer

 
discard

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.