Gathering detailed insights and metrics for @mapbox/mapnik-omnivore
Gathering detailed insights and metrics for @mapbox/mapnik-omnivore
Gathering detailed insights and metrics for @mapbox/mapnik-omnivore
Gathering detailed insights and metrics for @mapbox/mapnik-omnivore
Node module that returns metadata about spatial files.
npm install @mapbox/mapnik-omnivore
Typescript
Module System
Node Version
NPM Version
JavaScript (96.81%)
Batchfile (3.19%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
44 Stars
522 Commits
19 Forks
119 Watchers
24 Branches
629 Contributors
Updated on Jun 18, 2025
Latest Version
10.0.0
Package Id
@mapbox/mapnik-omnivore@10.0.0
Unpacked Size
40.87 kB
Size
11.60 kB
File Count
16
NPM Version
6.14.5
Node Version
10.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Node module that returns metadata of spatial files. Version format follows Semantic Version
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 filecsv
: 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
filevar mapnikOmnivore = require('@mapbox/mapnik-omnivore'),
path = require('path');
var file = path.resolve('test/data/zip/world_merc/world_merc.shp');
mapnikOmnivore.digest(file, function(err, metadata){
if (err) return callback(err);
else {
console.log('Metadata returned!');
console.log(metadata);
}
});
required
(err, metadata)
metadata
{ filesize: 428328, // size of file in bytes
projection: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over',
filename: 'world_merc',
center: [ 0, 12.048603815490733 ],
extent: [ -180, -59.47306100000001, 180, 83.57026863098147 ],
json: {
vector_layers: [ {
id: 'world_merc',
description: '',
minzoom: 0,
maxzoom: 22,
fields: {
FIPS: 'String',
ISO2: 'String',
ISO3: 'String',
UN: 'Number',
NAME: 'String',
AREA: 'Number',
POP2005: 'Number',
REGION: 'Number',
SUBREGION: 'Number',
LON: 'Number',
LAT: 'Number' }
} ]
},
minzoom: 0, // calculates the optimal minimum and
maxzoom: 5, // maximum zoom levels for the file
layers: [ 'world_merc' ],
dstype: 'shape',
filetype: '.shp' }
Raster files will include a raster
object:
{ filesize: 1494,
projection: '+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
raster:
{ pixelSize: [ 7.502071930146189, 7.502071930145942 ],
bandCount: 1,
bands: [ [Object] ],
nodata: null,
origin: [ -1134675.2952829634, 2485710.4658232867 ],
width: 984,
height: 804,
units: { linear: [Object], angular: [Object] } },
filename: 'sample',
center: [ -110.32476292309875, 44.56502238336985 ],
extent:
[ -110.3650933429331,
44.53327824851143,
-110.28443250326441,
44.596766518228264 ],
minzoom: 0,
maxzoom: 13,
dstype: 'gdal',
filetype: '.vrt',
layers: [ 'sample' ] }
$ npm install --global @mapbox/mapnik-omnivore
$ digest <filepath>
# Prints a JSON string
Install the https://github.com/mapbox/tilelive-omnivore
Use the command line tool it provides, called mapnik-omnivore
to generate Mapnik XML
npm install @mapbox/mapnik-omnivore
npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 6/17 approved changesets -- score normalized to 3
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More