<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="2">Hi Hugues,</font><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">I was looking through the code you mention, and I started to wonder why it's so complicated. Would it not be possible to loop through the the coordinate systems using CS_csrd and look at the value of the epsgNbr field in the cs_Csdef_ struct?</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Or is the epsgNbr field no longer utilized? (I see it's defined in only about half of the systems).</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">Steve<br></font><div><br><font
 class="Apple-style-span" face="arial" size="2">--- On </font><b style="font-family: arial; font-size: 10pt; ">Wed, 26/1/11, Hugues Wisniewski <i>&lt;hugues.wisniewski@autodesk.com&gt;</i></b><font class="Apple-style-span" face="arial" size="2"> wrote:</font><br><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-family: arial; font-size: 10pt; "><br>From: Hugues Wisniewski &lt;hugues.wisniewski@autodesk.com&gt;<br>Subject: [MetaCRS] RE: EPSG Code to Coordinate System<br>To: "Chris Gibson" &lt;Chris.Gibson@divestco.com&gt;, "metacrs@lists.osgeo.org" &lt;metacrs@lists.osgeo.org&gt;<br>Date: Wednesday, 26 January, 2011, 0:22<br><br><div id="yiv1908262380"><style><!--
#yiv1908262380  
 _filtered #yiv1908262380 {font-family:"MS Mincho";panose-1:2 2 6 9 4 2 5 8 3 4;}
 _filtered #yiv1908262380 {font-family:"MS Mincho";panose-1:2 2 6 9 4 2 5 8 3 4;}
 _filtered #yiv1908262380 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv1908262380 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered #yiv1908262380 {panose-1:2 2 6 9 4 2 5 8 3 4;}
#yiv1908262380  
#yiv1908262380 p.yiv1908262380MsoNormal, #yiv1908262380 li.yiv1908262380MsoNormal, #yiv1908262380 div.yiv1908262380MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
#yiv1908262380 a:link, #yiv1908262380 span.yiv1908262380MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1908262380 a:visited, #yiv1908262380 span.yiv1908262380MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv1908262380 pre
        {margin:0in;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv1908262380 span.yiv1908262380EmailStyle17
        {font-family:"sans-serif";color:windowtext;}
#yiv1908262380 span.yiv1908262380EmailStyle18
        {font-family:"sans-serif";color:#1F497D;}
#yiv1908262380 span.yiv1908262380HTMLPreformattedChar
        {font-family:"Courier New";}
#yiv1908262380 .yiv1908262380MsoChpDefault
        {font-size:10.0pt;}
 _filtered #yiv1908262380 {margin:1.0in 1.25in 1.0in 1.25in;}
#yiv1908262380 div.yiv1908262380WordSection1
        {}
--></style><div class="yiv1908262380WordSection1"><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">Hello Chris,</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">For this kind of activity an example is always welcome ;-) and here’s how it’s done in the MapGuide API for future reference </span></p><pre><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">The method is CCoordinateSystemFormatConverter::CodeToCode in the file:</span></pre><pre> &nbsp;</pre><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;"><a rel="nofollow" target="_blank"
 href="http://svn.osgeo.org/mapguide/trunk/MgDev/Common/CoordinateSystem/CoordSysFormatConverter.cpp">http://svn.osgeo.org/mapguide/trunk/MgDev/Common/CoordinateSystem/CoordSysFormatConverter.cpp</a></span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">The Cs-Map API being used is CSepsg2adskCS. </span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">And if EPSG is the target CSadsk2epsgCS is the one.</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">CS_epsg2msi sounds like a dead prototype that would have to be removed from Cs-Map</span></p><p class="yiv1908262380MsoNormal"><span
 style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">Feel free to create a ticket for that and it will be taken care of</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">Thanks</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;">Hugues</span></p><p class="yiv1908262380MsoNormal"><span style="font-size:11.0pt;font-family:&quot;sans-serif&quot;;color:#1F497D;"> &nbsp;</span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;"><p class="yiv1908262380MsoNormal"><b><span
 style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;"> metacrs-bounces@lists.osgeo.org [mailto:metacrs-bounces@lists.osgeo.org] <b>On Behalf Of </b>Chris Gibson<br><b>Sent:</b> Tuesday, January 25, 2011 3:33 PM<br><b>To:</b> metacrs@lists.osgeo.org<br><b>Subject:</b> [MetaCRS] EPSG Code to Coordinate System</span></p></div></div><p class="yiv1908262380MsoNormal"> &nbsp;</p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;">I have a need to convert an EPSG code to the Coordinate System descriptor. I thought the function CS_epsg2msi would do what I want, this is in the header file, but no function exists in the source code, so I get an unresolved external.</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;"> &nbsp;</span></p><p
 class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;">Am I missing something?</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;"> &nbsp;</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;">What should I be using?</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;"> &nbsp;</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;">Thanks</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA" style="font-size:10.0pt;font-family:&quot;sans-serif&quot;;">Chris Gibson</span></p><p class="yiv1908262380MsoNormal"><span lang="EN-CA">&nbsp;&nbsp;</span></p></div></div></blockquote></div></div></td></tr></table>