I'm trying to make a color ramp for a 1-band tiff file or a jpeg. I have a 
1-band tiff file and I converted that tiff file into VRT. I was reading some of 
the posts and some suggest to modify the VRT file and add a ColorTable tag but 
that doesn't work. My objective is to show the tiff(or)jpeg on google earth. 
I'm running version 1.4.1.0 of gdal. Below is the VRT file without any 
modifications. What I modify was the '<ColorInterp>Gray</ColorInterp>' to 
'<ColorInterp>Palette</ColorInterp>' and added a ColorTable.

VRTDataset rasterXSize="1200" rasterYSize="1096">
  
<SRS>GEOGCS[&quot;NAD83&quot;,DATUM[&quot;North_American_Datum_1983&quot;,SPHEROID[&quot;GRS
 
1980&quot;,6378137,298.2572221010002,AUTHORITY[&quot;EPSG&quot;,&quot;7019&quot;]],AUTHORITY[&quot;EPSG&quot;,&quot;6269&quot;]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;degree&quot;,0.0174532925199433],AUTHORITY[&quot;EPSG&quot;,&quot;4269&quot;]]</SRS>
  <GeoTransform> -1.2459079918952935e+02,  8.9964705882352915e-03,  
0.0000000000000000e+00,  4.2216820949146452e+01,  0.0000000000000000e+00, 
-8.9964705882352915e-03</GeoTransform>
  <Metadata>
    <MDI key="AREA_OR_POINT">Area</MDI>
  </Metadata>
  <VRTRasterBand dataType="Float32" band="1">
    <Metadata/>
    <NoDataValue>-3.40282346638529E+38</NoDataValue>
    <ColorInterp>Gray</ColorInterp>
    <SimpleSource>
      <SourceFilename relativeToVRT="1">GoesWest1V1561915.tif</SourceFilename>
      <SourceBand>1</SourceBand>
      <SrcRect xOff="0" yOff="0" xSize="1200" ySize="1096"/>
      <DstRect xOff="0" yOff="0" xSize="1200" ySize="1096"/>
    </SimpleSource>
  </VRTRasterBand>
</VRTDataset>

-- 
View this message in context: 
http://n2.nabble.com/1-band-TIFF-FILE-color-ramp-NEEDED-tp2613963p2613963.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to