mapnik-omnivore
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -156,2 +156,3 @@ var gdal = require('gdal'); | ||
} | ||
fields[field.name] = fieldDescription; | ||
@@ -158,0 +159,0 @@ } |
@@ -151,3 +151,5 @@ var gdal = require('gdal'); | ||
} | ||
if (srs.indexOf('+units=') === -1 && srs.indexOf('+proj=longlat') !== -1) return 'decimal degrees'; | ||
//Default to meters for now, if nothing matches | ||
@@ -161,7 +163,13 @@ else return 'm'; | ||
m: function(x) { return x; }, | ||
ft: function(x) { return x / 0.3048; }, | ||
mi: function(x) { return x / 1609.34; }, | ||
km: function(x) { return x / 1000; }, | ||
'us-ft': function(x) { return x / 0.3048; }, | ||
'us-mi': function(x) { return x / 1609.34; }, | ||
'decimal degrees': function(x) { return x / 360 * circumference; } | ||
@@ -168,0 +176,0 @@ }; |
{ | ||
"name": "mapnik-omnivore", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Node module that returns metadata of spatial files.", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"sphericalmercator": "~1.0.2", | ||
"gdal": "0.4.1", | ||
"gdal": "~0.4.2", | ||
"mapbox-file-sniff": "0.3.0", | ||
@@ -18,0 +18,0 @@ "queue-async": "1.0.7" |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
0
26598
678
+ Addedgdal@0.4.4(transitive)
+ Addednan@1.6.2(transitive)
- Removedgdal@0.4.1(transitive)
- Removednan@1.4.3(transitive)
Updatedgdal@~0.4.2