<div>Hi Friends,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am working on GDAL library. I have some doubts in using it. I want to convert the geographic coordinate system into any other projection coordinate system. That is. i want the converted values of WGS84 latitude and longitude values in any other projection coordinate system like UTM or Mercator2SP.......etc. And also i want to retrieve the zone number from this . If anyone know abou this convertion using GDAL library or OGRSpatial Reference class, please mail me. its very urgent for me.
</div>
<div>&nbsp;</div>
<div>I am giving the code&nbsp; i am working. i dont know how to go forward . plz help me. i am doing it in VC++ on Windows.<br clear="all"></div>
<p>{<br>&nbsp;OGRSpatialReference osRS,oosRS ;<br>&nbsp;char *pszWKT=NULL;<br>&nbsp;char *pszaWKT=NULL;<br>&nbsp;CString str;<br>&nbsp;<br>&nbsp;osRS.SetWellKnownGeogCS(&quot;WGS84&quot;);<br>&nbsp;osRS.exportToWkt(&amp;pszWKT);<br>&nbsp;str.Format(&quot;%s&quot;,pszWKT);
<br>&nbsp;MessageBox(str);</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp; oosRS.SetProjCS(&quot;Mercator_2SP&quot;);<br>&nbsp;oosRS.SetWellKnownGeogCS(&quot;EPSG:9805&quot;);<br>&nbsp;oosRS.SetHOM(0, 75, 90.0, 90.0,1.0, 500000, 0);<br>&nbsp;oosRS.exportToWkt(&amp;pszaWKT);<br>&nbsp;str.Format(&quot;%s&quot;,pszaWKT);
<br>&nbsp;MessageBox(str);</p>
<div>void *reProjTransform=GDALCreateReprojectionTransformer(pszWKT,pszaWKT);<br>&nbsp;/////////////////</div>
<div>I dont know wat to do after this. how to get the converted latitude and longitude values.</div>
<div>}</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I even tried with the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OGRCreateCoordinateTransformation()&nbsp;&nbsp; function. by passing the two coordinate systems in WKT format. still i was strucked.</div>
<div>&nbsp;</div>
<div>plz help me.<br>-- <br>Regards,<br>Viritha.B </div>