<DIV>Hello.</DIV> <DIV> </DIV> <DIV>I am creating an image out of another image, i read the meta data information from one image and assign it to he other image.</DIV> <DIV>this is the code i use to do it.</DIV> <DIV> </DIV><FONT size=2> <DIV><EM>DALSetGeoTransform( hDstDS, adfGeoTransform );</EM></DIV> <DIV><EM>GDALSetProjection( hDstDS, pszPrettyWkt);</EM></DIV> <DIV><EM></EM></DIV> <DIV><EM>hBand = GDALGetRasterBand( hDstDS, 1 );</EM></DIV> <DIV><EM>GDALRasterIO( hBand, GF_Write, 0, 0, nXSize, nYSize, </EM></DIV> <DIV><EM>pafScanline, nXSize, nYSize, GDT_Float32, 0, 0 ); </EM></DIV> <DIV><EM>GDALClose( hDstDS );</EM></DIV> <DIV></FONT> </DIV> <DIV>When i comment the <EM>GDALSetProjection( hDstDS, pszWkt);</EM> i find that the image geotransformation matrix was set correctly . Also when i use <EM>GDALSetProjection( hDstDS, pszWkt);</EM> the geo transformation matrix not inserted neither the projection.</DIV> <DIV> </DIV>
<DIV>I checked the PszWkt it give me this </DIV> <DIV> </DIV> <DIV><EM><FONT color=#0000bf>PROJCS["IMAGINE GeoTIFF Support<BR>Copyright 1991 - 2001 by ERDAS, Inc. All Rights Reserved<BR>@(#)$RCSfile: egtf.c $ $Revision: 1.10.1.6 $ $Date: 2003/10/17 16:36:51EDT $<BR>Projection Name = Transverse Mercator<BR>Uni",GEOGCS["IMAGINE GeoTIFF Support<BR>Copyright 1991 - 2001 by ERDAS, Inc. All Rights Reserved<BR>@(#)$RCSfile: egtf.c $ $Revision: 1.10.1.6 $ $Date: 2003/10/17 16:36:51EDT $<BR>Unable to match Ellipsoid (Datum) to a Ge",DATUM["unknown",SPHEROID["unnamed",63<BR>78137,298.2572220960423]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433<BR>]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER<BR>["central_meridian",24],PARAMETER["scale_factor",0.9996],PARAMETER["false_eastin<BR>g",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]<BR>]]</FONT></EM></DIV> <DIV> </DIV> <DIV>The original image has
this prjection </DIV> <DIV> </DIV> <DIV>Projection: Transverse Mercartor</DIV> <DIV>Spheroid:GRS 180</DIV> <DIV>Datum:EGSA 97</DIV> <DIV> </DIV> <DIV>I notice here the datum and the spheroid are not recognized is this why i can not update the projection.</DIV> <DIV> </DIV><p>
                <hr size=1>Relax. Yahoo! Mail
<a href="http://us.rd.yahoo.com/mail_us/taglines/virusall/*http://communications.yahoo.com/features.php?page=221">virus scanning</a> helps detect nasty viruses!