mapnik-omnivore
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -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; |
{ | ||
"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` |
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
29861
120
795