Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mapnik-omnivore

Package Overview
Dependencies
Maintainers
26
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.1 to 5.0.2

5

lib/utils.js

@@ -8,5 +8,4 @@ var fs = require('fs');

var maxSize = 500 * 1024;
var maxzoom = 22;
var max = 22;
var min;
var max;

@@ -23,3 +22,3 @@ fs.stat(filepath, function(err, stats) {

for (z = maxzoom; z >= 0; z--) {
for (z = max; z >= 0; z--) {
bounds = sm.xyz(extent, z, false, 4326);

@@ -26,0 +25,0 @@ x = (bounds.maxX - bounds.minX) + 1;

4

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

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

"jshint": "^2.6.0",
"mapnik-test-data": "http://mapbox-npm.s3.amazonaws.com/package/mapnik-test-data-2.0.3-fece0a9c546074a1479e9eae2333184029bb2279.tgz",
"mapnik-test-data": "http://mapbox-npm.s3.amazonaws.com/package/mapnik-test-data-2.0.4-c1c9aa8357c29a98a4be07efaa0bc790bebec74f.tgz",
"tape": "3.0.x"

@@ -34,0 +34,0 @@ },

@@ -10,12 +10,13 @@ # mapnik-omnivore

Currently supports the following file types:
- geojson/topojson
- `.kml`
- `.gpx`
- `.tif`
- `.vrt` : raster files listed in the VRT file must be in the same directory as the VRT file
- `.csv` : must be valid geo CSV, and can be in the form of `.csv`, `.txt`, or `.tsv`
- `.shp` : In order to set the projection, the `.prj` file must be in the same directory and have the same name as the `.shp` file
- `geojson`
- `topojson`
- `kml`
- `gpx`
- `tif`
- `vrt` : raster files listed in the VRT file must be in the same directory as the VRT file
- `csv` : must be valid geo CSV, and can be in the form of `csv`, `txt`, or `tsv`
- `shp` : In order to set the projection, the `.prj` file must be in the same directory and have the same name as the `.shp` file
# Example
## Javascript Usage

@@ -29,3 +30,3 @@ ```

mapnikOmnivore.digest(file, function(err, metadata){
if(err) return callback(err);
if (err) return callback(err);
else {

@@ -38,3 +39,2 @@ console.log('Metadata returned!');

### mapnikOmnivore.digest(filepath, callback)

@@ -109,5 +109,10 @@ - filepath `required`

## CLI Usage
```
$ npm install --global mapnik-omnivore
$ digest <filepath>
# Prints a JSON string
```
## Install
With npm:
```

@@ -117,7 +122,3 @@ npm install mapnik-omnivore

Run `node runModule.js` from the root to try it out.
## Tests
`npm test`
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