Hi,<br><br>I&#39;m trying to cast a point in one projection into another, and I think I have some issues with OpenLayers.Projection.&nbsp; Below is html/javascript code I&#39;m using and the rendered browser ouput.&nbsp; In this example, I&#39;m trying to cast the point (184056.505, 4809728.250) in epsg:26915 to epgs:4326.&nbsp; My expectation is that point p, which is this point in epsg:26915, should display as something on the order of (-100,43), or something close to that range.&nbsp; However, as the output shows, the point is not changed.&nbsp; Can someone explain why?<br>
<br>Thanks,<br>matt<br><br>P.S. - Is there an error in the documentation for the constructor of OpenLayers.Projection (at: <a href="http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Projection-js.html#OpenLayers.Projection.OpenLayers.Projection">http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Projection-js.html#OpenLayers.Projection.OpenLayers.Projection</a>)?&nbsp; It says that the constructor takes an object to set parameters, but every example I see of the constructor is passing a string in the way I am setting it here.&nbsp; Am I not understanding the documentation conventions correctly, or is this not correctly or completely documented?<br>
<br><br>=== html/javascript code ===<br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br>&nbsp; &lt;head&gt;<br>&nbsp;&nbsp;&nbsp; &lt;title&gt;OpenLayers Example&lt;/title&gt;<br>&lt;!--&nbsp;&nbsp;&nbsp; &lt;script src=&quot;<a href="http://www.openlayers.org/api/OpenLayers.js">http://www.openlayers.org/api/OpenLayers.js</a>&quot;&gt;&lt;/script&gt; --&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;script src=&quot;<a href="http://localhost/_common//OpenLayers-2.6/OpenLayers.js">http://localhost/_common//OpenLayers-2.6/OpenLayers.js</a>&quot;&gt;&lt;/script&gt;<br>&nbsp; &lt;/head&gt;<br><br>&nbsp; &lt;body&gt;<br><br>
&nbsp;&nbsp;&nbsp; &lt;pre&gt;<br>&nbsp;&nbsp;&nbsp; &lt;script type=&quot;text/javascript&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var p = new OpenLayers.Geometry.Point(184056.505, 4809728.250);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var proj_src = new OpenLayers.Projection(&quot;EPSG:26915&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var proj_tgt = new OpenLayers.Projection(&quot;EPSG:4326&quot;);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(&quot;Point p [before OpenLayers.Projection.transform] is: &quot; + p);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpenLayers.Projection.transform(p,proj_src,proj_tgt);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(&quot;Point p [after OpenLayers.Projection.transform] is: &quot; + p);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(&quot;proj_src is: &quot; + proj_src);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(&quot;prj_src walk of properties is:&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(&quot;------------------------------&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (prop in proj_src) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(prop + &quot; =&gt; &quot; + proj_src[prop]);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.writeln(&quot;------------------------------&quot;);<br>
&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/pre&gt;<br>&nbsp; &lt;/body&gt;<br><br>&lt;/html&gt;<br>========================================================================<br><br>=== browser rendered output ===<br>

    <pre>    <br>Point p [before OpenLayers.Projection.transform] is: POINT(184056.505 4809728.25)<br>Point p [after OpenLayers.Projection.transform] is: POINT(184056.505 4809728.25)<br>proj_src is: EPSG:26915<br><br>prj_src walk of properties is:<br>
------------------------------<br>projCode =&gt; EPSG:26915<br>proj =&gt; null<br>initialize =&gt; function (projCode, options) {<br>    OpenLayers.Util.extend(this, options);<br>    this.projCode = projCode;<br>    if (window.Proj4js) {<br>
        this.proj = new Proj4js.Proj(projCode);<br>    }<br>}<br>getCode =&gt; function () {<br>    return this.proj ? this.proj.srsCode : this.projCode;<br>}<br>getUnits =&gt; function () {<br>    return this.proj ? this.proj.units : null;<br>
}<br>toString =&gt; function () {<br>    return this.getCode();<br>}<br>equals =&gt; function (projection) {<br>    if (projection &amp;&amp; projection.getCode) {<br>        return this.getCode() == projection.getCode();<br>
    } else {<br>        return false;<br>    }<br>}<br>destroy =&gt; function () {<br>    delete this.proj;<br>    delete this.projCode;<br>}<br>CLASS_NAME =&gt; OpenLayers.Projection<br>------------------------------<br>
</pre>========================================================================<br>
<br>