Derek,<br><br>You can add this info as meta-data tags. You will have to define your own names for the keys. Something like pix_1_class, pix_2_class, etc.<br><br>To add these you can use the -mo option with gdal_translate[1] or use a vrt file[2]. You can create such a vrt file using gdal_translate too by setting the output format (-of) to VRT.<br>
<br>[1]: <a href="http://www.gdal.org/gdal_translate.html">http://www.gdal.org/gdal_translate.html</a><br>[2]: <a href="http://www.gdal.org/gdal_vrttut.html">http://www.gdal.org/gdal_vrttut.html</a><br><br><div class="gmail_quote">
On Tue, Jul 24, 2012 at 7:27 PM, jdmorgan <span dir="ltr"><<a href="mailto:jdmorgan@unca.edu" target="_blank">jdmorgan@unca.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
I was hoping someone could help me out. I have a raster .img file. with existing pixel values. Those values are integer, but are classed to string values not currently in the same .img file. For example pixel value 2 means ClassTwo. Is it possible to add the string values (a new field) onto the raster .img file?<br>
<br>
Thanks,<br>
Derek<br>
______________________________<u></u>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>