Skip to content

Commit

Permalink
Allow ratios up to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed May 10, 2019
1 parent fdb2b5a commit ef3de0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/raster.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Raster(filepath) {
var ratio = Math.abs(geotransform[1] / geotransform[5]);

if (geotransform[1] <= 0 || geotransform[5] >= 0) throw invalid('Invalid raster: Invalid pixelsize in geotransform array');
if (ratio < 0.5 || ratio > 2) throw invalid('Invalid raster: Invalid pixelsize in geotransform array');
if (ratio < 0.5 || ratio > 5) throw invalid('Invalid raster: Invalid pixelsize in geotransform array');
if (geotransform[2] !== 0 || geotransform[4] !== 0) throw invalid('Invalid raster: Invalid rotation value in geotransform array');

this.details.pixelSize = [geotransform[1], geotransform[5]];
Expand Down

0 comments on commit ef3de0e

Please sign in to comment.