1
0
Fork 0
mirror of https://github.com/sbrl/terrain50-cli.git synced 2024-11-26 07:33:00 +00:00

identify: fix actual size

This commit is contained in:
Starbeamrainbowlabs 2020-07-03 16:10:36 +01:00
parent d5ebdb632d
commit 2b164ea633
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -8,7 +8,7 @@ import Terrain50 from 'terrain50';
function summarise_obj(obj) {
console.log(`Format: ASC`);
console.log(`Claimed size: ${obj.meta.ncols}x${obj.meta.nrows}`);
console.log(`Actual size: ${obj.data.length}x${obj.data[0].length}`);
console.log(`Actual size: ${obj.data[0].length}x${obj.data.length}`);
console.log(`Lower-left corner: (${obj.meta.xllcorner}, ${obj.meta.yllcorner})`);
console.log(`Cell size: ${obj.meta.cellsize}`);
if(typeof obj.meta.NODATA_value !== "undefined")