[MetaCRS] Problem with NAD27

Micho Gar michogar at gmail.com
Wed Jul 1 06:49:43 EDT 2009


Hi all,

I am working with proj4js and I have encoutered this problem. In the
function deriveConstants, do this:

      if (this.nagrids == '@null') this.datumCode = 'none';
      if (this.datumCode && this.datumCode != 'none') {
        var datumDef = Proj4js.Datum[this.datumCode];
        if (datumDef) {
          this.datum_params = datumDef.towgs84.split(',');
          this.ellps = datumDef.ellipse;
          this.datumName = datumDef.datumName ? datumDef.datumName :
this.datumCode;
        }
      }

but the NAD27 datum definitions is:

"NAD27": {nadgrids: "@conus, at alaska, at ntv2_0.gsb, at ntv1_can.dat", ellipse:
"clrk66", datumName: "North_American_Datum_1927"},

he do not have the towgs84 term like the NAD83 for example:

"NAD83": {towgs84: "0,0,0", ellipse: "GRS80", datumName:
"North_American_Datum_1983"},

and when the function attemp to calculate the datum_params, he gives the
error:

Error: datumDef.towgs84 is undefined
Archivo de origen:
http://op915190.mma.es/WmsViewer/javascript/lib/proj4js/lib/proj4js.js
Línea: 680

Thanks to all.


-- 
# michogar
# Analista Programador SIG
# GNU/Linux Counter 462666

Una visión personal:
http://michogar.blogspot.com

El día a día:
http://twitter.com/michogar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/metacrs/attachments/20090701/a3ae93a4/attachment.html


More information about the MetaCRS mailing list