File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -860,11 +860,20 @@ class GeoTIFFImage {
860
860
] ;
861
861
}
862
862
if ( modelTransformation ) {
863
+ if ( modelTransformation [ 1 ] === 0 && modelTransformation [ 4 ] === 0 ) {
864
+ return [
865
+ modelTransformation [ 0 ] ,
866
+ - modelTransformation [ 5 ] ,
867
+ modelTransformation [ 10 ] ,
868
+ ] ;
869
+ }
863
870
return [
864
- modelTransformation [ 0 ] ,
865
- - modelTransformation [ 5 ] ,
866
- modelTransformation [ 10 ] ,
867
- ] ;
871
+ Math . sqrt ( ( modelTransformation [ 0 ] * modelTransformation [ 0 ] )
872
+ + ( modelTransformation [ 4 ] * modelTransformation [ 4 ] ) ) ,
873
+ - Math . sqrt ( ( modelTransformation [ 1 ] * modelTransformation [ 1 ] )
874
+ + ( modelTransformation [ 5 ] * modelTransformation [ 5 ] ) ) ,
875
+ modelTransformation [ 10 ] ] ;
876
+ }
868
877
}
869
878
870
879
if ( referenceImage ) {
You can’t perform that action at this time.
0 commit comments