Loading src/projCode/vandg.js +110 −111 Original line number Diff line number Diff line Loading @@ -54,13 +54,13 @@ proj4.Proj.vandg = { if ((Math.abs(dlon) <= proj4.common.EPSLN) || (Math.abs(Math.abs(lat) - proj4.common.HALF_PI) <= proj4.common.EPSLN)) { x = this.x0; if (lat >= 0) { y = this.y0 + proj4.common.PI * this.R * Math.tan(.5 * theta); y = this.y0 + proj4.common.PI * this.R * Math.tan(0.5 * theta); } else { y = this.y0 + proj4.common.PI * this.R * - Math.tan(.5 * theta); y = this.y0 + proj4.common.PI * this.R * - Math.tan(0.5 * theta); } // return(OK); } var al = .5 * Math.abs((proj4.common.PI / dlon) - (dlon / proj4.common.PI)); var al = 0.5 * Math.abs((proj4.common.PI / dlon) - (dlon / proj4.common.PI)); var asq = al * al; var sinth = Math.sin(theta); var costh = Math.cos(theta); Loading Loading @@ -94,7 +94,6 @@ proj4.Proj.vandg = { inverse: function(p) { var lon, lat; var xx,yy,xys,c1,c2,c3; var al,asq; var a1; var m1; var con; Loading Loading
src/projCode/vandg.js +110 −111 Original line number Diff line number Diff line Loading @@ -54,13 +54,13 @@ proj4.Proj.vandg = { if ((Math.abs(dlon) <= proj4.common.EPSLN) || (Math.abs(Math.abs(lat) - proj4.common.HALF_PI) <= proj4.common.EPSLN)) { x = this.x0; if (lat >= 0) { y = this.y0 + proj4.common.PI * this.R * Math.tan(.5 * theta); y = this.y0 + proj4.common.PI * this.R * Math.tan(0.5 * theta); } else { y = this.y0 + proj4.common.PI * this.R * - Math.tan(.5 * theta); y = this.y0 + proj4.common.PI * this.R * - Math.tan(0.5 * theta); } // return(OK); } var al = .5 * Math.abs((proj4.common.PI / dlon) - (dlon / proj4.common.PI)); var al = 0.5 * Math.abs((proj4.common.PI / dlon) - (dlon / proj4.common.PI)); var asq = al * al; var sinth = Math.sin(theta); var costh = Math.cos(theta); Loading Loading @@ -94,7 +94,6 @@ proj4.Proj.vandg = { inverse: function(p) { var lon, lat; var xx,yy,xys,c1,c2,c3; var al,asq; var a1; var m1; var con; Loading