<div>Hi Friends,</div>
<div> </div>
<div> 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> </div>
<div>I am giving the code 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> OGRSpatialReference osRS,oosRS ;<br> char *pszWKT=NULL;<br> char *pszaWKT=NULL;<br> CString str;<br> <br> osRS.SetWellKnownGeogCS("WGS84");<br> osRS.exportToWkt(&pszWKT);<br> str.Format("%s",pszWKT);
<br> MessageBox(str);</p>
<p> <br> oosRS.SetProjCS("Mercator_2SP");<br> oosRS.SetWellKnownGeogCS("EPSG:9805");<br> oosRS.SetHOM(0, 75, 90.0, 90.0,1.0, 500000, 0);<br> oosRS.exportToWkt(&pszaWKT);<br> str.Format("%s",pszaWKT);
<br> MessageBox(str);</p>
<div>void *reProjTransform=GDALCreateReprojectionTransformer(pszWKT,pszaWKT);<br> /////////////////</div>
<div>I dont know wat to do after this. how to get the converted latitude and longitude values.</div>
<div>}</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>I even tried with the OGRCreateCoordinateTransformation() function. by passing the two coordinate systems in WKT format. still i was strucked.</div>
<div> </div>
<div>plz help me.<br>-- <br>Regards,<br>Viritha.B </div>