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"><<a href="mailto:tappenbeck@widemann.de">tappenbeck@widemann.de</a>></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>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>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["DHDN / 3-degree Gauss-Kruger zone 2",<br>
GEOGCS["DHDN",<br>
DATUM["Deutsches_<u></u>Hauptdreiecksnetz",<br>
SPHEROID["Bessel 1841",6377397.155,299.<u></u>1528128000009,<br>
AUTHORITY["EPSG","7004"]],<br>
AUTHORITY["EPSG","6314"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.<u></u>0174532925199433],<br>
AUTHORITY["EPSG","4314"]],<br>
PROJECTION["Transverse_<u></u>Mercator"],<br>
PARAMETER["latitude_of_origin"<u></u>,0],<br>
PARAMETER["central_meridian",<u></u>6],<br>
PARAMETER["scale_factor",1],<br>
PARAMETER["false_easting",<u></u>2500000],<br>
PARAMETER["false_northing",0],<br>
UNIT["metre",1,<br>
AUTHORITY["EPSG","9001"]],<br>
AUTHORITY["EPSG","31466"]]<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'1.33"E, 49d25'34.75"N)<br>
Lower Left ( 2601576.179, 5475344.469) ( 7d23'59.41"E, 49d24'27.48"N)<br>
Upper Right ( 2603654.697, 5477422.987) ( 7d25'44.45"E, 49d25'33.49"N)<br>
Lower Right ( 2603654.697, 5475344.469) ( 7d25'42.50"E, 49d24'26.22"N)<br>
Center ( 2602615.438, 5476383.728) ( 7d24'51.92"E, 49d25'0.49"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>