Jan,<br><br>You can use the -srcnodata and -dstalpha options of gdalwarp[1] to set nodata values and create an alpha band to the image. You will have to give the value of the black borders with the -srcnodata option.<br><br>
[1]: <a href="http://www.gdal.org/gdalwarp.html">http://www.gdal.org/gdalwarp.html</a><br><br><div class="gmail_quote">On Mon, Nov 7, 2011 at 5:33 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 have a image with following data:<br>
<br>
C:\Program Files (x86)\FWTools2.4.7>gdalinfo "[Path]\trans_a.tif"<br>
Driver: GTiff/GeoTIFF<br>
Files: D:\brumi\VG_Bruchmuehlbach-<u></u>Miesau_DOP\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>
there are black arrows at the border (by transformation) - is it possible to make i transparency ?<br>
<br>
how?<br>
<br>
gdal_translate -of ECW old_image.tif new_image.ecw<br>
<br>
tells that is unpossible !!!<br>
<br>
can you help me ?<br>
<br>
regards Jan :-)<br>
<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>