I am using ArcSDE as my raster data source with the ultimate goal to tile this dataset: I am running the following gdal_translate command to generate the initial VRT:
gdal_translate -projwin 390605 5588320 410128 5568805 -a_srs EPSG:25832 -a_nodata none -of vrt SDE:server,5153,db,user,pw,table,image clippedvrt.vrt
Tiling the resultant VRT produces tiff with weird colors. The colors are either intensified or totally different from the original as you can see from the test results
Here is the result of gdalinfo on the resultant VRT:
Band 1 Block=128x128 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
0: -1,-1,-1,255
1: 0,0,-1,255
2: -1,22873,22873,255
3: 26214,13107,0,255
4: -1,22873,22873,255
5: 26214,-17734,-1,255
6: -1,-3342,22873,255
7: 0,-6683,0,255
8: 0,0,0,255
9: -19790,26214,0,255
10: -13108,-1,-13108,255
11: 0,0,0,255
12: -11052,-11052,-11052,255
13: -13108,-1,-1,255
14: -3342,-10538,-21846,255
15: 26214,13107,0,255
16: -19276,-32640,26214,255
17: -1,-1,-1,255
18: -1,-1,-1,255
19: -1,-1,-1,255
20: -1,-1,-1,255
21: -1,-1,-1,255
22: -1,-1,-1,255
23: -1,-1,-1,255
24: -1,-1,-1,255
Could someone shed some light as to what might be happening?