Loading lib/projString.js +3 −0 Original line number Diff line number Diff line Loading @@ -112,5 +112,8 @@ module.exports = function(defData) { self[paramName] = paramVal; } } if(typeof self.datumCode === 'string' && self.datumCode !== "WGS84"){ self.datumCode = self.datumCode.toLowerCase(); } return self; }; test/testData.js +5 −0 Original line number Diff line number Diff line Loading @@ -274,6 +274,11 @@ var testPoints = [ code:'+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1 +units=m +no_defs ', xy:[104588.196404, 193175.582367], ll:[3.7186701465384533,51.04642936832842] }, { code:"+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs", ll:[-3.20078, 55.96056], xy:[325132.0089586496, 674822.638235305] } ]; if(typeof module !== 'undefined'){ Loading Loading
lib/projString.js +3 −0 Original line number Diff line number Diff line Loading @@ -112,5 +112,8 @@ module.exports = function(defData) { self[paramName] = paramVal; } } if(typeof self.datumCode === 'string' && self.datumCode !== "WGS84"){ self.datumCode = self.datumCode.toLowerCase(); } return self; };
test/testData.js +5 −0 Original line number Diff line number Diff line Loading @@ -274,6 +274,11 @@ var testPoints = [ code:'+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1 +units=m +no_defs ', xy:[104588.196404, 193175.582367], ll:[3.7186701465384533,51.04642936832842] }, { code:"+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs", ll:[-3.20078, 55.96056], xy:[325132.0089586496, 674822.638235305] } ]; if(typeof module !== 'undefined'){ Loading