Hi all, <br><br>I am working with proj4js and I have encoutered this problem. In the function deriveConstants, do this:<br><br>      if (this.nagrids == &#39;@null&#39;) this.datumCode = &#39;none&#39;;<br>      if (this.datumCode &amp;&amp; this.datumCode != &#39;none&#39;) {<br>
        var datumDef = Proj4js.Datum[this.datumCode];<br>        if (datumDef) {<br>          this.datum_params = datumDef.towgs84.split(&#39;,&#39;);<br>          this.ellps = datumDef.ellipse;<br>          this.datumName = datumDef.datumName ? datumDef.datumName : this.datumCode;<br>
        }<br>      }<br><br clear="all">but the NAD27 datum definitions is:<br><br>&quot;NAD27&quot;: {nadgrids: &quot;@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat&quot;, ellipse: &quot;clrk66&quot;, datumName: &quot;North_American_Datum_1927&quot;},<br>
<br>he do not have the towgs84 term like the NAD83 for example:<br><br>&quot;NAD83&quot;: {towgs84: &quot;0,0,0&quot;, ellipse: &quot;GRS80&quot;, datumName: &quot;North_American_Datum_1983&quot;},<br><br>and when the function attemp to calculate the datum_params, he gives the error:<br>
<br>Error: datumDef.towgs84 is undefined<br>Archivo de origen: <a href="http://op915190.mma.es/WmsViewer/javascript/lib/proj4js/lib/proj4js.js">http://op915190.mma.es/WmsViewer/javascript/lib/proj4js/lib/proj4js.js</a><br>
Línea: 680<br><br>Thanks to all.<br><br><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br><br>Una visión personal:<br><a href="http://michogar.blogspot.com">http://michogar.blogspot.com</a><br>
<br>El día a día: <br><a href="http://twitter.com/michogar">http://twitter.com/michogar</a><br><br><br>