Sam,<br><br>datatype is handled by gdal. Can you provide the gdalinfo output of the GeoTiff?<br><br><div class="gmail_quote">On Wed, Sep 26, 2012 at 4:28 PM, Samantha Goodchild-Brown <span dir="ltr"><<a 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">
<div 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><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.<div><div class="h5"><br>
<br>
<br>
On 2012/09/26 11:54, Chaitanya kumar CH wrote:
<blockquote 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 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 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 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/mailman/listinfo/gdal-dev</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Best regards,<br>
Chaitanya kumar CH.<br>
<br>
<a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>
17.2416N 80.1426E<br>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>