[MetaCRS] this.defData is null

Mike Adair madair at dmsolutions.ca
Mon Feb 2 14:06:31 EST 2009


Olivier,

I noticed that as well on the weekend, there is an open ticket for this 
http://trac.osgeo.org/proj4js/ticket/29.

Mike

Olivier Terral wrote:
> 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
>
> _______________________________________________
> MetaCRS mailing list
> MetaCRS at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/metacrs
>   

-- 
   Michael Adair
   Senior Software Architect
   DM Solutions Group Inc.

   Office: (613) 565-5056 x26
   madair at dmsolutions.ca
   http://www.dmsolutions.ca
   http://research.dmsolutions.ca




More information about the MetaCRS mailing list