Commit 1ab26286 authored by Calvin Metcalf's avatar Calvin Metcalf
Browse files

remove regex and parse the split towgs84

parent e202ef8d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -350,7 +350,6 @@ proj4.Proj = proj4.Class({
   */
  parseDefs: function() {
    var self = this;
    //var re = /(title|proj|units|datum|nadgrids|ellps|a|b|rf|lat_0|lat_1|lat_2|lat_ts|lon_0|lon_1|lon_2|alpha|lonc|x_0|y_0|k_0|k|r_a|zone|south|towgs84|to_meter|from_greenwich|pm|axis|czech|wktext|no_rot|no_off|no_defs)/;
    this.defData = proj4.defs[this.srsCode];
    if (!this.defData) {
      return;
@@ -424,7 +423,7 @@ proj4.Proj = proj4.Class({
        self.utmSouth = true;
      },
      towgs84:function(v){
        self.datum_params = v.split(",");
        self.datum_params = v.split(",").map(function(a){return parseFloat(a,10)});
      },
      to_meter:function(v){
        self.to_meter = parseFloat(v,10);