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 == '@null') this.datumCode = 'none';<br> if (this.datumCode && this.datumCode != 'none') {<br>
var datumDef = Proj4js.Datum[this.datumCode];<br> if (datumDef) {<br> this.datum_params = datumDef.towgs84.split(',');<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>"NAD27": {nadgrids: "@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat", ellipse: "clrk66", datumName: "North_American_Datum_1927"},<br>
<br>he do not have the towgs84 term like the NAD83 for example:<br><br>"NAD83": {towgs84: "0,0,0", ellipse: "GRS80", datumName: "North_American_Datum_1983"},<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>