<br><font size=2 face="sans-serif">I don't know about the code I'm not
a programmer.</font>
<br><font size=2 face="sans-serif">You said </font>
<br><tt><font size=2>UTM Zone 12 with NAD83 works but this Zone 11 NAD27
doesn't.</font></tt>
<br><tt><font size=2>My guess is you are using Zone 11 NAD83 instead NAD27.</font></tt>
<br>
<br><tt><font size=2>I might be wrong though.</font></tt>
<br><tt><font size=2>Steve</font></tt>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Henneke, Amanda M&quot;
&lt;amanda.m.henneke@boeing.com&gt;</b> </font>
<p><font size=1 face="sans-serif">23/09/2009 01:04 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">&quot;Steve.Toutant@inspq.qc.ca&quot;
&lt;Steve.Toutant@inspq.qc.ca&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">RE: RE [gdal-dev] Translating between
UTM and Geographic</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3 color=blue face="Comic Sans MS">What do you mean by &quot;good
parameters&quot; is there something I need to add to the code I included?</font>
<br><font size=3>&nbsp;</font>
<p><font size=2 color=#006291 face="Kristen ITC"><b>Amanda M. Henneke</b></font><font size=3>
</font><font size=1 color=#808080 face="Comic Sans MS"><br>
IG/DB Tools - TSS Capability Center</font><font size=3> </font><font size=1 color=#808080 face="Comic Sans MS"><br>
Boeing - St. Louis</font><font size=3> </font><font size=1 color=#808080 face="Comic Sans MS"><br>
314-777-6856</font><font size=3> </font>
<div align=center>
<p><font size=1 color=#008000 face="Comic Sans MS">When One tugs at a single
thing in Nature, he finds it attached to the rest of the world. -John Muir</font>
<p><font size=1 color=#008000 face="Comic Sans MS">&nbsp; Please consider
the environment before printing this e-mail.</font></div>
<p><font size=3>&nbsp;</font>
<br>
<br>
<hr><font size=2 face="Tahoma"><b>From:</b> Steve.Toutant@inspq.qc.ca [mailto:Steve.Toutant@inspq.qc.ca]
<b><br>
Sent:</b> Wednesday, September 23, 2009 11:53 AM<b><br>
To:</b> Henneke, Amanda M<b><br>
Cc:</b> gdal-dev@lists.osgeo.org; gdal-dev-bounces@lists.osgeo.org<b><br>
Subject:</b> RE [gdal-dev] Translating between UTM and Geographic</font><font size=3><br>
</font>
<br><font size=2 face="sans-serif"><br>
hi,</font><font size=3> </font><tt><font size=2><br>
slight shift in the points (to the east) and an extremely slight shift
up (to the north).</font></tt><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
That seems to be a datum error. Make sure you set the good parameters for
datum when using nad83 or nad27.</font><font size=3> </font><font size=2 face="sans-serif"><br>
Steve</font><font size=3> </font>
<p><font size=3>&nbsp; </font>
<p><font size=3><br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=59%><font size=1 face="sans-serif"><b>&quot;Henneke, Amanda M&quot;
&lt;amanda.m.henneke@boeing.com&gt;@lists.osgeo.org</b> <br>
Envoyé par : gdal-dev-bounces@lists.osgeo.org</font><font size=3> </font>
<p><font size=1 face="sans-serif">23/09/2009 11:16 AM</font><font size=3>
</font>
<td width=40%>
<br>
<table width=100%>
<tr valign=top>
<td width=9%>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td width=90%><font size=1 face="sans-serif">&quot;gdal-dev@lists.osgeo.org&quot;
&lt;gdal-dev@lists.osgeo.org&gt;</font><font size=3> </font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[gdal-dev] Translating between UTM and
Geographic</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
</font><tt><font size=2><br>
Hello all-<br>
<br>
I'm trying to figure out how to reproject some points from a UTM projection
to Geographic (WGS84) projection. &nbsp;This works fine when I'm working
in UTM Zone 12 with NAD83. &nbsp;When I try the same code for Zone 11 NAD27,
I get a slight shift in the points (to the east) and an extremely slight
shift up (to the north).<br>
<br>
I've included the following code as it stands now, I've tried all sorts
of things thinking that I need to somehow include more information for
the new spatial reference (the destination SR), and so far I'm coming up
empty...<br>
<br>
Anyone have any ideas what I'm missing?<br>
<br>
Where sSpRefParams is a string that contains the WKT projection information
from a valid layer...<br>
<br>
srOld = new OSGeo.OSR.SpatialReference(sSpRefParams);<br>
<br>
srNew.SetGeogCS(&quot;Geographic Coordinate System&quot;, OSGeo.OSR.Osr.SRS_DN_WGS84,
OSGeo.OSR.Osr.SRS_DN_WGS84, OSGeo.OSR.Osr.SRS_WGS84_SEMIMAJOR, OSGeo.OSR.Osr.SRS_WGS84_INVFLATTENING,
&quot;Greenwich&quot;, 0.0, &quot;degree&quot;, 0.0174532925199433);<br>
<br>
ctTransform = new OSGeo.OSR.CoordinateTransformation(srOld, srNew);<br>
<br>
<br>
<br>
Amanda M. Henneke<br>
IG/DB Tools - TSS Capability Center<br>
Boeing - St. Louis<br>
314-777-6856<br>
<br>
<br>
<br>
When One tugs at a single thing in Nature, he finds it attached to the
rest of the world. -John Muir<br>
 Please consider the environment before printing this e-mail.<br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
gdal-dev@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/gdal-dev</font></tt><font size=3><br>
<br>
<br>
</font>
<br>
<br>
<br>