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 think the title says everything but:

I want to generate a small sample raster (eg. euclidean distance or cost distance) to explain the method of cost-distance analysis, and I'd like to label the pixels with the corresponding cost-value.

I already tried to lay a fish-net over the raster in arcgis, but I didn't find a good way to copy the values into the attribute table.

I'd appreciate every hint! :)

share|improve this question
If this is for teaching purposes would it be suitable to create the raster and then a vector grid layer and label each 'cell' in the vector, while actual raster operations are performed on the raster below? –  sgrieve Sep 19 '12 at 12:06
It's an interesting issue, but I have no personal solution. Just found on ESRI help files, that if you have The Production Line Tool Set (PLTS) extension, then it's possible in ArcMap: webhelp.esri.com/arcgisdesktop/9.3/… And there was smth on Stack as well: gis.stackexchange.com/questions/32319/… But would be happy to hear how in the end you did that! –  najuste Sep 19 '12 at 13:09
Not really for teaching, i'm working on my diploma-thesis and i explain accumulated cost rasters. –  ph0b0z Sep 21 '12 at 10:11

2 Answers 2

up vote 7 down vote accepted
  1. Convert your raster to points with ArcGIS Raster To Point Tool
  2. Label the point layer. Use a transparent symbol for your point layer.
share|improve this answer
The tool helped and that's the easiest way, thanks! :) –  ph0b0z Sep 21 '12 at 10:04

In QGIS you could use gdal2xyz to make a text file containing xyz triplets:

gdal2xyz.py raster.xxx textfile.txt

This will produce a space-delimited text file that can be imported to QGIS as points.


share|improve this answer

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.