[MetaCRS] this.defData is null

Olivier Terral olivier.terral at geomatys.fr
Fri Jan 30 04:17:03 EST 2009


hi guys,

I've seen a little  error when Proj4js doesn't find the SRS definition .
In the function parseDefs, the property this.defData is null so a JS 
error appear when we try to split it

Is it possible to fix this in the trunk it's just a "if" to add   :

/**
 * Function: parseDefs
 * Parses the PROJ.4 initialization string and sets the associated 
properties.
 *
 */
  parseDefs: function() {
      this.defData = Proj4js.defs[this.srsCode];
      var paramName, paramVal;     
      if (this.defData) {
          var paramArray=this.defData.split("+");


thanks in advance
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olivier_terral.vcf
Type: text/x-vcard
Size: 269 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/metacrs/attachments/20090130/dede4bde/olivier_terral.vcf


More information about the MetaCRS mailing list