Hi Flo,

you need either 32bit colors or all files must have the same color
table. If referencing does not scale/rotate the file you can apply a
common table right before the referencing with a normal image
manipulation software like Gimp. If that is not possible you can expand
the files to 32bit color and do the referencing. If that results into
files too large, you can extract referencing information, reduce the
colors to a common color table with Gimp, and add the information again.

There is even a GDAL tool to reduce colors. However it does not take a
transparent channel into account. Years ago I patched it. But that was
quite quick and dirty. It never made it into
the official code.


Oliver

Am 07.10.2015 um 14:55 schrieb Flo:
>
> On 10/06/15 17:45, Oliver Eichler wrote:
>> Hi Flo,
>>
>> the file has reference points (GCP) but no reference information as such:
>>
>> Corner Coordinates:
>> Upper Left  (    0.0,    0.0)
>> Lower Left  (    0.0, 2336.0)
>> Upper Right ( 3125.0,    0.0)
>> Lower Right ( 3125.0, 2336.0)
>> Center      ( 1562.5, 1168.0)
>>
>>
>> This has to look a bit like:
>>
>> Corner Coordinates:
>> Upper Left  ( 1193772.946, 5877433.181) ( 10d43'25.84"E, 46d47'40.14"N)
>> Lower Left  ( 1193772.946, 5756585.800) ( 10d43'25.84"E, 46d 2'37.39"N)
>> Upper Right ( 1400769.640, 5877433.181) ( 12d34'59.98"E, 46d47'40.14"N)
>> Lower Right ( 1400769.640, 5756585.800) ( 12d34'59.98"E, 46d 2'37.39"N)
>> Center      ( 1297271.293, 5817009.490) ( 11d39'12.91"E, 46d25'13.45"N)
>>
> Thank you. That is very valueable for me.
>
>> Try gdalwarp instead of gdal_translate.
>>
> Hit!!! It's working with gdalwrap. However I have to postprocess the
> output with gdal_translate to expand the color table if I build a mapset
> of several images. At least I haven't found an option to do so with
> gdalwarp.
>
> Thank you very much!
>
> Best Regards,
> Flo.
>
> ------------------------------------------------------------------------------
> Full-scale, agent-less Infrastructure Monitoring from a single dashboard
> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
> Physical-Virtual-Cloud Infrastructure monitoring from one console
> Real user monitoring with APM Insights and performance trend reports 
> Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
> _______________________________________________
> Qlandkartegt-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users


------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to