Commit a60ee83d authored by Calvin Metcalf's avatar Calvin Metcalf
Browse files

storing a wkt proj know works as expected

parent eedc0547
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
define(['./common','./constants','./global','./projString'],function(common, constants,globals,parseProj) {
define(['./common','./constants','./global','./projString','./wkt'],function(common, constants,globals,parseProj,wkt) {

  function defs(name) {
    /*global console*/
    var that = this;
    if (arguments.length === 2) {
      if(arguments[1][0]==='+'){
        defs[name] = parseProj(arguments[1]);
      }else{
        defs[name] = wkt(arguments[1]);
      }
    }
    else if (arguments.length === 1) {
      if (Array.isArray(name)) {
+3 −1
Original line number Diff line number Diff line
@@ -147,7 +147,9 @@ define(['./extend','./constants','./common'],function(extend,constants,common) {
      var ratio = wkt.to_meter||1;
      return parseFloat(input,10)*ratio;
    }
    var renamer = rename.bind(null,wkt);
    var renamer = function(a){
      return rename(wkt,a);
    };
    var list = [
      ['standard_parallel_1','Standard_Parallel_1'],
      ['standard_parallel_2','Standard_Parallel_2'],