Comparing version 2.1.2 to 2.1.3
@@ -863,7 +863,15 @@ /** @module geotiffimage */ | ||
if (modelTransformation) { | ||
if (modelTransformation[1] === 0 && modelTransformation[4] === 0) { | ||
return [ | ||
modelTransformation[0], | ||
-modelTransformation[5], | ||
modelTransformation[10], | ||
]; | ||
} | ||
return [ | ||
modelTransformation[0], | ||
-modelTransformation[5], | ||
modelTransformation[10], | ||
]; | ||
Math.sqrt((modelTransformation[0] * modelTransformation[0]) | ||
+ (modelTransformation[4] * modelTransformation[4])), | ||
-Math.sqrt((modelTransformation[1] * modelTransformation[1]) | ||
+ (modelTransformation[5] * modelTransformation[5])), | ||
modelTransformation[10]]; | ||
} | ||
@@ -895,3 +903,3 @@ | ||
* exception is thrown. | ||
* @param {boolean} [tilegrid=false] If true return extent for a tilegrid | ||
* @param {boolean} [tilegrid=false] If true return extent for a tilegrid | ||
* without adjustment for ModelTransformation. | ||
@@ -898,0 +906,0 @@ * @returns {Array<number>} The bounding box |
@@ -782,6 +782,15 @@ "use strict"; | ||
if (modelTransformation) { | ||
if (modelTransformation[1] === 0 && modelTransformation[4] === 0) { | ||
return [ | ||
modelTransformation[0], | ||
-modelTransformation[5], | ||
modelTransformation[10], | ||
]; | ||
} | ||
return [ | ||
modelTransformation[0], | ||
-modelTransformation[5], | ||
modelTransformation[10], | ||
Math.sqrt((modelTransformation[0] * modelTransformation[0]) | ||
+ (modelTransformation[4] * modelTransformation[4])), | ||
-Math.sqrt((modelTransformation[1] * modelTransformation[1]) | ||
+ (modelTransformation[5] * modelTransformation[5])), | ||
modelTransformation[10] | ||
]; | ||
@@ -788,0 +797,0 @@ } |
{ | ||
"name": "geotiff", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "GeoTIFF image decoding in JavaScript", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/geotiffjs/geotiff.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2129932
15002
224350