<!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.  I cannot get the projection to work, and I suspect it's the parameters for the UTM projection object.  I am trying to project from UTM Zone 19N, NAD 1983 to lat-long.  Here is my code:</FONT></P>

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

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

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

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

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

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

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

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

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

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

</BODY>
</HTML>