<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=733550718-24032009><FONT color=#000080 
size=2>Hi Pietro,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=733550718-24032009><FONT color=#000080 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=733550718-24032009><FONT color=#000080 
size=2>That was it!&nbsp; After making this correction, it works!&nbsp; 
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=733550718-24032009><FONT color=#000080 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=733550718-24032009><FONT color=#000080 
size=2>Thank you,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=733550718-24032009><FONT color=#000080 
size=2>Bob</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Pietro Giannini 
[mailto:pgiannini@bytewise.it] <BR><B>Sent:</B> Tuesday, March 24, 2009 6:12 
AM<BR><B>To:</B> mapserver-users<BR><B>Subject:</B> Re: [mapserver-users] 
Projection object parameters for UTM to lat-long<BR></FONT><BR></DIV>
<DIV></DIV><FONT face=Arial>Bob,</FONT><BR><FONT face=Arial>maybe error is in 
first line: "</FONT><FONT face=Arial size=2>ellps-GRS80" is wrong, "</FONT><FONT 
face=Arial size=2>ellps<FONT color=#ff0000>=</FONT>GRS80" is 
correct.</FONT><BR><FONT size=2><FONT face=Arial>bye</FONT></FONT><BR><FONT 
size=2><FONT face=Arial>................pg</FONT></FONT><BR><BR>Bistrais, Bob ha 
scritto: 
<BLOCKQUOTE 
cite=mid:4EFF8BB964547748A07CA32961810C0412C48522@SOM-TEAQASMAIL1.som.w2k.state.me.us 
type="cite">
  <META content="MS Exchange Server version 6.5.7653.38" name=Generator><!-- Converted from text/rtf format -->
  <P><FONT face=Arial size=2>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 face=Arial size=2>$projInObj = 
  ms_newprojectionobj("proj=utm,ellps-GRS80,datum=NAD83,zone=19,units=m,north,no_defs");</FONT> 
  <BR><FONT face=Arial size=2>$projOutObj = 
  ms_newprojectionobj("proj=latlong");</FONT> <BR><FONT face=Arial 
  size=2>$poPoint = ms_newpointobj();</FONT> <BR><FONT face=Arial 
  size=2>$poPoint-&gt;setXY($xmin, $ymin);</FONT> <BR><FONT face=Arial 
  size=2>echo "&lt;p/&gt;Coords: " . $poPoint-&gt;x . ",".$poPoint-&gt;y;</FONT> 
  <BR><FONT face=Arial size=2>$poPoint = $poPoint-&gt;project($projInObj, 
  $projOutObj);</FONT> <BR><FONT face=Arial size=2>echo "&lt;p/&gt;x = " . 
  $poPoint-&gt;x;</FONT> <BR><FONT face=Arial size=2>echo "&lt;p/&gt;y = " . 
  $poPoint-&gt;y;</FONT> <BR><FONT face=Arial size=2>$poPoint-&gt;free();</FONT> 
  </P>
  <P><FONT face=Arial size=2>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><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
mapserver-users mailing list
<A class=moz-txt-link-abbreviated href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A>
<A class=moz-txt-link-freetext href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A>
  </PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature cols="72">-- 
Pietro Giannini
Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E</PRE></BODY></HTML>