Jan,<br><br>The -dstalpha option should have created the alpha band. Check the gdalinfo output of the destination file TEST.tif<br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 3:15 PM, Jan Tappenbeck <span dir="ltr">&lt;<a href="mailto:tappenbeck@widemann.de">tappenbeck@widemann.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
<br>
   hi !<br>
<br>
i had transform some tif-files by epsg-code so the images will rotate and at the border now some black triangles.<br>
<br>
now i want to merge by gdalwarp and i use following command with the dstalpha-option:<br>
<br>
C:\Program Files (x86)\FWTools2.4.7&gt;gdalwarp -dstalpha[Path]\geotiff\trans_<u></u>a.tif [Path]OP\geotiff\t<br>
rans_b.tif [Path]OP\geotiff\TEST.tif<br>
Creating output file that is 20382P x 10788L.<br>
Processing input file [Path]OP\geotiff\trans_a.tif.<br>
<br>
0...10...20...30...40...50...<u></u>60...70...80...90...100 - done.<br>
Processing input file [Path]OP\geotiff\trans_b.tif.<br>
<br>
0...10...20...30...40...50...<u></u>60...70...80...90...100 - done.<br>
<br>
<br>
here are some image-information:<br>
<br>
C:\Program Files (x86)\FWTools2.4.7&gt;gdalinfo [Path]<br>
OP\geotiff\trans_a.tif<br>
Driver: GTiff/GeoTIFF<br>
Files: [Path]OP\geotiff\trans_a.tif<br>
Size is 10390, 10390<br>
Coordinate System is:<br>
PROJCS[&quot;DHDN / 3-degree Gauss-Kruger zone 2&quot;,<br>
    GEOGCS[&quot;DHDN&quot;,<br>
        DATUM[&quot;Deutsches_<u></u>Hauptdreiecksnetz&quot;,<br>
            SPHEROID[&quot;Bessel 1841&quot;,6377397.155,299.<u></u>1528128000009,<br>
                AUTHORITY[&quot;EPSG&quot;,&quot;7004&quot;]],<br>
            AUTHORITY[&quot;EPSG&quot;,&quot;6314&quot;]],<br>
        PRIMEM[&quot;Greenwich&quot;,0],<br>
        UNIT[&quot;degree&quot;,0.<u></u>0174532925199433],<br>
        AUTHORITY[&quot;EPSG&quot;,&quot;4314&quot;]],<br>
    PROJECTION[&quot;Transverse_<u></u>Mercator&quot;],<br>
    PARAMETER[&quot;latitude_of_origin&quot;<u></u>,0],<br>
    PARAMETER[&quot;central_meridian&quot;,<u></u>6],<br>
    PARAMETER[&quot;scale_factor&quot;,1],<br>
    PARAMETER[&quot;false_easting&quot;,<u></u>2500000],<br>
    PARAMETER[&quot;false_northing&quot;,0],<br>
    UNIT[&quot;metre&quot;,1,<br>
        AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],<br>
    AUTHORITY[&quot;EPSG&quot;,&quot;31466&quot;]]<br>
Origin = (2601576.178792405400000,<u></u>5477422.986974134100000)<br>
Pixel Size = (0.200049845331526,-0.<u></u>200049845331526)<br>
Metadata:<br>
  AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
  INTERLEAVE=PIXEL<br>
Corner Coordinates:<br>
Upper Left  ( 2601576.179, 5477422.987) (  7d24&#39;1.33&quot;E, 49d25&#39;34.75&quot;N)<br>
Lower Left  ( 2601576.179, 5475344.469) (  7d23&#39;59.41&quot;E, 49d24&#39;27.48&quot;N)<br>
Upper Right ( 2603654.697, 5477422.987) (  7d25&#39;44.45&quot;E, 49d25&#39;33.49&quot;N)<br>
Lower Right ( 2603654.697, 5475344.469) (  7d25&#39;42.50&quot;E, 49d24&#39;26.22&quot;N)<br>
Center      ( 2602615.438, 5476383.728) (  7d24&#39;51.92&quot;E, 49d25&#39;0.49&quot;N)<br>
Band 1 Block=10390x1 Type=Byte, ColorInterp=Red<br>
Band 2 Block=10390x1 Type=Byte, ColorInterp=Green<br>
Band 3 Block=10390x1 Type=Byte, ColorInterp=Blue<br>
<br>
could someone tell me how to make the black triangel transparenzy ?<br>
<br>
when i move the mousemarker over the black triangle in the OpenEV-Viewer in the statusline 0,0,0 will show.<br>
<br>
regards Jan :-)<br>
<br>
FWTools2.4.7 in use by win7<br>
<br>
______________________________<u></u>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br>+91-9494447584<br>17.2416N 80.1426E<br>