New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mapnik-omnivore

Package Overview
Dependencies
Maintainers
38
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapnik-omnivore - npm Package Compare versions

Comparing version 5.0.7 to 5.0.8

11

lib/raster.js

@@ -45,4 +45,2 @@ var gdal = require('gdal');

geotransform = this.gdalDatasource.geoTransform;
this.details.pixelSize = [geotransform[1], geotransform[5]];
this.details.origin = [geotransform[0], geotransform[3]];
}

@@ -53,2 +51,11 @@ catch (err) {

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 (geotransform[2] !== 0 || geotransform[4] !== 0) throw invalid('Invalid raster: Invalid rotation value in geotransform array');
this.details.pixelSize = [geotransform[1], geotransform[5]];
this.details.origin = [geotransform[0], geotransform[3]];
try { this.projection = srs.parse(this.gdalDatasource.srs.toWKT()).proj4; }

@@ -55,0 +62,0 @@ catch (err) {

4

package.json
{
"name": "mapnik-omnivore",
"version": "5.0.7",
"version": "5.0.8",
"description": "Node module that returns metadata of spatial files.",

@@ -12,3 +12,3 @@ "main": "index.js",

"dependencies": {
"srs": "~0.4.5",
"srs": "~0.4.7",
"mapnik": "~3.2.0",

@@ -15,0 +15,0 @@ "sphericalmercator": "~1.0.2",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc