<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    After using gdal info to confirm my input image is a greyscale,
    using the FAQRaster intructions I used gdal_translate to create a
    VRT.<br>
    I then opened it in crimson editor to edit the colorinterp and add
    in the colortable. I used<br>
    <pre class="western"><ColorInterp>Palette</ColorInterp>
<ColorTable>
       <11 c1="181" c2="69"  c3="15"/>
       <12 c1="224"  c2="86"  c3="20"/>
       <13 c1="229"  c2="130"  c3="21"/> 

</pre>
    AHA, I see my first error. I forgot to add the '/' to close the
    paragraph. I am VERY RUSTY at this.<br>
    <br>
    Gdal was complaining about not being able to close the file and
    refering me to </VRTRasterBand> and<br>
    </VRTDataset> which confused me greatly as I didn't touch it
    at all.<br>
    <br>
    Now it runs, but fails because it tells me my datatype is not
    compatiable. <br>
    This is a different issue I will take up separately as I expect has
    nothing to do with GDAL.<br>
    <br>
    Many thanks. Will keep at it.<br>
    <br>
    <br>
    On 2012/09/26 11:54, Chaitanya kumar CH wrote:
    <blockquote
cite="mid:CAMKgpObTg6vq5bEh-gWUq2GAbnK-1F6Vs+_86ic5tJoED0bMCg@mail.gmail.com"
      type="cite">Sam,<br>
      <br>
      What did you do? What errors did you get?<br>
      <br>
      <div class="gmail_quote">On Wed, Sep 26, 2012 at 12:23 PM,
        Samantha Goodchild-Brown <span dir="ltr"><<a
            moz-do-not-send="true"
            href="mailto:samanthag@geograph.co.za" target="_blank">samanthag@geograph.co.za</a>></span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">I need to
          change a greyscale image to Palette and specify the colors to
          use for specific values.<br>
          <br>
          However I am getting very confused with all the 'comments' and
          references and instructions<br>
          <br>
          eg.<br>
          In " <a moz-do-not-send="true"
href="http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable"
            target="_blank">http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolortable</a>"
          it is explained how to edit a VRT to make a new tif with a
          color palette of your choice.<br>
          However in later 'fishings' I saw someone mention that this
          doesn't work and that the only way to do it is with scripting
          or programming.<br>
          <br>
          I am now also trying as it seems to be the simplest method but
          I am also failing.<br>
          <br>
          Other tickets etc that come close are in the region of 4 years
          old etc and way over my head.<br>
          <br>
          Besides the obvious (gdal error messages), can anyone tell me
          why this is happening? what I need to tweek? if a fix is on
          the way? is it still valid that the only workaround is with
          scripting?<br>
          Does anyone know of another open source method that doesn't
          involve scripting?<br>
          <br>
          Many thanks<br>
          Sam<br>
          _______________________________________________<br>
          gdal-dev mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
            target="_blank">http://lists.osgeo.org/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>
    </blockquote>
    <br>
  </body>
</html>