Comparing version 2.3.16 to 2.3.17
{ | ||
"name": "proj4", | ||
"version": "2.3.16-alpha", | ||
"version": "2.3.17", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/proj4js/proj4js", |
{ | ||
"name": "proj4", | ||
"version": "2.3.16-alpha", | ||
"version": "2.3.17", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "repo": "proj4js/proj4js", |
var adjust_lon = require('./adjust_lon'); | ||
module.exports = function(zone, lon) { | ||
if (!zone) { | ||
if (zone === undefined) { | ||
zone = Math.floor((adjust_lon(lon) + Math.PI) * 30 / Math.PI); | ||
@@ -9,8 +9,7 @@ | ||
return 0; | ||
} | ||
else if (zone >= 60) { | ||
} else if (zone >= 60) { | ||
return 59; | ||
} | ||
} | ||
else { | ||
return zone; | ||
} else { | ||
if (zone > 0 && zone <= 60) { | ||
@@ -17,0 +16,0 @@ return zone - 1; |
@@ -8,4 +8,4 @@ var adjust_zone = require('../common/adjust_zone'); | ||
var zone = adjust_zone(this.zone, this.long0); | ||
if (!zone) { | ||
return; | ||
if (zone === undefined) { | ||
throw new Error('unknown utm zone'); | ||
} | ||
@@ -12,0 +12,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = '2.3.16'; | ||
module.exports = '2.3.17'; |
{ | ||
"name": "proj4", | ||
"version": "2.3.16", | ||
"version": "2.3.17", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -328,2 +328,7 @@ var testPoints = [ | ||
}, | ||
{ | ||
code: '+proj=utm +lon_0=-3 +ellps=GRS80 +lat_1=0.5 +lat_2=2 +n=0.5', | ||
ll: [2, 1], | ||
xy: [1057002.4052152266, 110955.14117382761] | ||
}, | ||
// these test cases are related to the original issue on GitHub | ||
@@ -330,0 +335,0 @@ { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
432192
10578