<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Projection object parameters for UTM to lat-long</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">I am trying to project an object from UTM to lat-long.&nbsp; I cannot get the projection to work, and I suspect it's the parameters for the UTM projection object.&nbsp; I am trying to project from UTM Zone 19N, NAD 1983 to lat-long.&nbsp; Here is my code:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">$projInObj = ms_newprojectionobj(&quot;proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,north,no_defs&quot;);</FONT>

<BR><FONT SIZE=2 FACE="Arial">$projOutObj = ms_newprojectionobj(&quot;proj=latlong&quot;);</FONT>

<BR><FONT SIZE=2 FACE="Arial">$poPoint = ms_newpointobj();</FONT>

<BR><FONT SIZE=2 FACE="Arial">$poPoint-&gt;setXY($xmin, $ymin);</FONT>

<BR><FONT SIZE=2 FACE="Arial">echo &quot;&lt;p/&gt;Coords: &quot; . $poPoint-&gt;x . &quot;,&quot;.$poPoint-&gt;y;</FONT>

<BR><FONT SIZE=2 FACE="Arial">$poPoint = $poPoint-&gt;project($projInObj, $projOutObj);</FONT>

<BR><FONT SIZE=2 FACE="Arial">echo &quot;&lt;p/&gt;x = &quot; . $poPoint-&gt;x;</FONT>

<BR><FONT SIZE=2 FACE="Arial">echo &quot;&lt;p/&gt;y = &quot; . $poPoint-&gt;y;</FONT>

<BR><FONT SIZE=2 FACE="Arial">$poPoint-&gt;free();</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I can see the output using the echo lines.&nbsp; The coordinates going into the point show up and are correct, but there are no x/y values after doing the project.&nbsp; Can anyone see what I'm doing wrong?</FONT></P>

</BODY>
</HTML>