Re: [gdal-dev] gdal_translate produces tif with different colors as original

2013-11-08 Thread Marius Jigmond
I noticed you're using ArcMap for visualizing the results. Did you check what 
histogram/gamma stretch gets applied by default when you load the layer? I run 
into this issue often as results from GDAL operations appear much worse when 
loaded into ArcMap compared to originals. When I turn off stretching, both 
histogram/gamma, results are nearly identical to original.
-marius

 To: gdal-dev@lists.osgeo.org
 From: andre+jo...@nurfuerspam.de
 Date: Thu, 7 Nov 2013 16:54:32 +0100
 Subject: Re: [gdal-dev] gdal_translate produces tif with different colors as  
 original
 
 Am 06.11.2013 21:32, schrieb Jukka Rahkonen:
 
  You're advised to preprocess your rasters with other
  tools, such as pct2rgb.py or gdal_translate -expand RGB to operate
  gdalbuildvrt on RGB rasters instead.
 
 
 I proposed that, but have a look at the color palette of the VRT:
 
 http://gis.stackexchange.com/questions/76662/gdal-translate-produces-tif-with-different-colors-as-original
 
 Is it a fault of the source or the driver?
 
 Greetings,
 André Joost
 
 ___
 gdal-dev mailing list
 gdal-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/gdal-dev
  ___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal_translate produces tif with different colors as original

2013-11-07 Thread Andre Joost

Am 06.11.2013 21:32, schrieb Jukka Rahkonen:


You're advised to preprocess your rasters with other
tools, such as pct2rgb.py or gdal_translate -expand RGB to operate
gdalbuildvrt on RGB rasters instead.



I proposed that, but have a look at the color palette of the VRT:

http://gis.stackexchange.com/questions/76662/gdal-translate-produces-tif-with-different-colors-as-original

Is it a fault of the source or the driver?

Greetings,
André Joost

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

Re: [gdal-dev] gdal_translate produces tif with different colors as original

2013-11-06 Thread Jukka Rahkonen
 Moses.Gone at t-systems.com writes:

 
 
 
 Hello List,
 I am using SDE 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 attached test results
  
 
 https://drive.google.com/file/d/0Bw-iJv3cImO7bkZYRVZERi1rTTg/edit?usp=sharing 
  
 could someone shade some light as to what might be happening.

Hi,

I have seen something similar when I have created a VRT file from one
paletted image but the following images have used different palettes which
were optimized for each image. Now the palette of the  first image was
written into the VRT file and when it was applied to the other images the
result looked pretty funny. In my case I used the gdalbuildvrt tool which
gave me a helpful warning and a useful hint:
 The end result might produce weird colors. 
You're advised to preprocess your rasters with other
tools, such as pct2rgb.py or gdal_translate -expand RGB to operate
gdalbuildvrt on RGB rasters instead.

Perhaps you have somehow similar situation.

-Jukka Rahkonen-




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