mapnik-omnivore
Advanced tools
Comparing version 1.3.13 to 1.3.14
@@ -160,5 +160,5 @@ var fs = require('fs'), | ||
var minzoom = 0; | ||
var maxzoom = 16; | ||
var maxzoom = 22; | ||
//Calculate min/max zoom | ||
for (i = 16; i >= 0; i--) { | ||
for (i = maxzoom; i >= 0; i--) { | ||
var currentzoom = i; | ||
@@ -424,3 +424,3 @@ //Defaulting srs to WGS84 based on how the extent is set in mapnikSetup.getCenterAndExtent() function | ||
} catch(err) { | ||
return callback(invalid('Invalid gdal source. ' + err)); | ||
return callback(invalid('Invalid gdal source. ' + err.message)); | ||
} | ||
@@ -470,3 +470,3 @@ if (bands instanceof Error) return callback(bands); | ||
} catch(err){ | ||
return invalid("Error getting statistics of band. 1 or more of the VRT file's relative sources may be missing: " + err); | ||
return invalid("Error getting statistics of band. 1 or more of the VRT file's relative sources may be missing: " + err.message); | ||
}; | ||
@@ -622,3 +622,3 @@ //add to bands array | ||
} catch (err) { | ||
return callback(invalid('Error creating Mapnik Datasource for .geojson file')); | ||
return callback(invalid('Error creating Mapnik Datasource for .geojson file: ' + err.message)); | ||
} | ||
@@ -625,0 +625,0 @@ return callback(null, ds); |
{ | ||
"name": "mapnik-omnivore", | ||
"version": "1.3.13", | ||
"version": "1.3.14", | ||
"description": "Node module that returns metadata of spatial files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -505,3 +505,3 @@ var assert = require('assert'), | ||
var expectedMin = 14; | ||
var expectedMax = 16; | ||
var expectedMax = 19; | ||
var extent = [-77.11532282009873, 38.81041408561889, -76.90970655877031, 38.995615210318356]; | ||
@@ -586,3 +586,3 @@ var bytes = 64244520; | ||
var file = path.resolve('test/data/errors/sampleError.tif'); | ||
var expectedMessage = 'Invalid gdal source. Error: Error opening dataset'; | ||
var expectedMessage = 'Invalid gdal source. Error opening dataset'; | ||
datasourceProcessor.projectionFromRaster(file, function(err, projection) { | ||
@@ -589,0 +589,0 @@ assert.ok(err instanceof Error); |
@@ -15,4 +15,4 @@ { | ||
"max": 100, | ||
"mean": 29.725628716175223, | ||
"std_dev": 36.98885954363488 | ||
"mean": 29.725628716175, | ||
"std_dev": 36.988859543635 | ||
}, | ||
@@ -19,0 +19,0 @@ "scale": 1, |
80536