<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">I have a process to create a KAP/BSB file as follows:</div><div dir="ltr" data-setdir="false">- 1. Create a GIF</div><div dir="ltr" data-setdir="false">- 2. From the GIF Create a TIF</div><div dir="ltr" data-setdir="false">- 3. From the TIF create a KAP</div><div dir="ltr" data-setdir="false">- 4. Read the KAP into a Navigation program.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">For the 2nd process I use a image processing routine called CXIMAGE which works well except if the GIF is very large then it fails trying to load it. So I decided to use "gdal_Translate input.gif ouput.tif". This seems to work except the resulting KAP is unreadable by the navigation program.  So there must be a difference in the TIF created by the CXIMAGE and gdal_translate.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Here is gdalinfo of the input GIF:</div><div dir="ltr" data-setdir="false"><div><div>C:\SAT2CHART\SAT2CHART.Testing\temp>gdalinfo _temp_SP_KAP_1598583387_.gif</div><div>Driver: GTiff/GeoTIFF</div><div>Files: _temp_SP_KAP_1598583387_.gif</div><div>Size is 2303, 2047</div><div>Coordinate System is:</div><div>LOCAL_CS["WGS 84 / Pseudo-Mercator",</div><div>    UNIT["metre",1,</div><div>        AUTHORITY["EPSG","9001"]]]</div><div>GeoTransform =</div><div>  1.262783522530797e+93, 3.8435366748478e-57, 8.467125104458958e+175</div><div>  3.983892464727202e+252, 3.247326554715089e+35, 5.751476576395799e-153</div><div>Metadata:</div><div>  AREA_OR_POINT=Area</div><div>Image Structure Metadata:</div><div>  INTERLEAVE=BAND</div><div>Corner Coordinates:</div><div>Upper Left  (1262783522530796746737479706828132315251220510125960098188045561858895670625330307346101960704.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Lower Left  (173322050888274871313974395830280214368407169322874580391539706268399546036028454145435710880656476220319189266728520997656174731970960279022450462303754875301100115619306276913152.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Upper Right (1262783522530796746737479706828132315251220510125960098188045561858895670625330307346101960704.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Lower Right (173322050888274871313974395830280214368407169322874580391539706268399546036028454145435710880656476220319189266728520997656174731970960279022450462303754875301100115619306276913152.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Center      (86661025444137435656987197915140107184203584661437290195769853134199773018014227072717855440328238110159594633364260498828087365985480139511225231151877437650550057809653138456576.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Band 1 Block=2303x3 Type=Byte, ColorInterp=Palette</div><div>  Color Table (RGB with 256 entries)</div><div>    0: 100,96,52,255</div><div>    1: 136,152,136,255</div><div>    2: 60,120,96,255</div><div>    3: 80,60,56,255</div></div><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I did a gdalinfo of the tif created by the CXIMAGE program:</div><div dir="ltr" data-setdir="false"><div><div>C:\SAT2CHART\SAT2CHART.Testing\temp>gdalinfo "USING CXIMAGE_SP_KAP_1598534936_.tif"</div><div>Driver: GTiff/GeoTIFF</div><div>Files: USING CXIMAGE_SP_KAP_1598534936_.tif</div><div>Size is 2303, 2047</div><div>Coordinate System is `'</div><div>Metadata:</div><div>  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)</div><div>  TIFFTAG_XRESOLUTION=96</div><div>  TIFFTAG_YRESOLUTION=96</div><div>Image Structure Metadata:</div><div>  INTERLEAVE=BAND</div><div>Corner Coordinates:</div><div>Upper Left  (    0.0,    0.0)</div><div>Lower Left  (    0.0, 2047.0)</div><div>Upper Right ( 2303.0,    0.0)</div><div>Lower Right ( 2303.0, 2047.0)</div><div>Center      ( 1151.5, 1023.5)</div><div>Band 1 Block=2303x3 Type=Byte, ColorInterp=Palette</div><div>  Color Table (RGB with 256 entries)</div><div>    0: 8,0,8,255</div><div>    1: 8,8,12,255</div></div><div><br></div><div dir="ltr" data-setdir="false">and a gdalinfo of the TIF created by gdal_translate:</div><div dir="ltr" data-setdir="false"><div><div>C:\SAT2CHART\SAT2CHART.Testing\temp>gdalinfo "USING GDAL_SP_KAP_1598538217_.tif"</div><div>Driver: GTiff/GeoTIFF</div><div>Files: USING GDAL_SP_KAP_1598538217_.tif</div><div>Size is 2303, 2047</div><div>Coordinate System is:</div><div>LOCAL_CS["WGS 84 / Pseudo-Mercator",</div><div>    UNIT["metre",1,</div><div>        AUTHORITY["EPSG","9001"]]]</div><div>GeoTransform =</div><div>  1.262783522530797e+93, 3.8435366748478e-57, 8.467125104458958e+175</div><div>  3.983892464727202e+252, 3.247326554715089e+35, 5.751476576395799e-153</div><div>Metadata:</div><div>  AREA_OR_POINT=Area</div><div>Image Structure Metadata:</div><div>  INTERLEAVE=BAND</div><div>Corner Coordinates:</div><div>Upper Left  (1262783522530796746737479706828132315251220510125960098188045561858895670625330307346101960704.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Lower Left  (173322050888274871313974395830280214368407169322874580391539706268399546036028454145435710880656476220319189266728520997656174731970960279022450462303754875301100115619306276913152.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Upper Right (1262783522530796746737479706828132315251220510125960098188045561858895670625330307346101960704.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Lower Right (173322050888274871313974395830280214368407169322874580391539706268399546036028454145435710880656476220319189266728520997656174731970960279022450462303754875301100115619306276913152.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Center      (86661025444137435656987197915140107184203584661437290195769853134199773018014227072717855440328238110159594633364260498828087365985480139511225231151877437650550057809653138456576.000,3983892464727202554888960554269713030196205758904239846941521902545445025437834361819163746941457672362766848308926612078115418501685410889087779378869932632608114241119219770776413111973463633846695245205724734052201855595075165452848877534656742817792.000)</div><div>Band 1 Block=2303x3 Type=Byte, ColorInterp=Palette</div><div>  Color Table (RGB with 256 entries)</div><div>    0: 100,96,52,255</div><div>    1: 136,152,136,255</div><div>    2: 60,120,96,255</div><div>    3: 80,60,56,255</div><div>    4: 212,180,204,255</div></div><div><br></div><div dir="ltr" data-setdir="false"><i> have tried the following options to gdal_translate with no success:</i></div><div dir="ltr" data-setdir="false"><i><div><div>-- options = '-co PROFILE=BASELINE'</div><div>-- options = '-b 1 -b 2 -b 3'</div><div>-- options = '-co PHOTOMETRIC=CMYK'   </div><div> -- options = '-co PHOTOMETRIC=MINISBLACK'  </div><div> -- options = '-co PHOTOMETRIC=YCBCR'   CIELAB</div><div> -- options = '-co PHOTOMETRIC=CIELAB'</div></div><div><br></div><div dir="ltr" data-setdir="false">Any help would be appreciate,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><br></i></div><br></div><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div></div></body></html>