<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<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 http-equiv="Content-Type" content="text/html; ">
<meta name="Generator"
content="MS Exchange Server version 6.5.7653.38">
<title>Projection object parameters for UTM to lat-long</title>
<!-- Converted from text/rtf format -->
<p><font face="Arial" size="2">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 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->setXY($xmin, $ymin);</font>
<br>
<font face="Arial" size="2">echo "<p/>Coords: " .
$poPoint->x . ",".$poPoint->y;</font>
<br>
<font face="Arial" size="2">$poPoint =
$poPoint->project($projInObj, $projOutObj);</font>
<br>
<font face="Arial" size="2">echo "<p/>x = " . $poPoint->x;</font>
<br>
<font face="Arial" size="2">echo "<p/>y = " . $poPoint->y;</font>
<br>
<font face="Arial" size="2">$poPoint->free();</font>
</p>
<p><font face="Arial" size="2">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>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>