osmtogeojson
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -1,3 +0,7 @@ | ||
2.0.3 | ||
2.0.5 | ||
----- | ||
* support input files larger than 256 MB. #17 | ||
2.0.4 | ||
----- | ||
* fix unresolved xml entities in command line mode | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "osmtogeojson", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "convert OSM to geojson", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha -R spec" | ||
"pretest": "npm ls --depth=Infinity > /dev/null", | ||
"test": "npm run test-lib && npm run test-cli", | ||
"test-lib": "mocha -R spec", | ||
"test-cli": "node test-cli/cli.test.js | faucet" | ||
}, | ||
@@ -30,7 +33,10 @@ "bin": { | ||
"concat-stream": "~1.0.1", | ||
"htmlparser2": "3.5.1" | ||
"htmlparser2": "3.5.1", | ||
"JSONStream": "0.8.0" | ||
}, | ||
"devDependencies": { | ||
"expect.js": "~0.2.0", | ||
"mocha": "~1.12.0" | ||
"mocha": "~1.12.0", | ||
"tape": "~2.10.2", | ||
"faucet": "~0.0.1" | ||
}, | ||
@@ -37,0 +43,0 @@ "engines": { |
@@ -40,2 +40,7 @@ /* converts OSM XML to OSM JSON using a fast streaming parser */ | ||
module.exports = function(xml_str) { p.write(xml_str); p.end(); return json; } | ||
p.parseFromString = function(xml_str) { p.write(xml_str); p.end(); return json; } | ||
p.getJSON = function() { | ||
return json; | ||
} | ||
module.exports = p; |
@@ -19,3 +19,3 @@ osmtogeojson | ||
* as a command line tool: | ||
* as a **command line tool**: | ||
@@ -25,4 +25,8 @@ $ npm install -g osmtogeojson | ||
* as a nodejs library: | ||
When working with extra large data files (≳ 100 MB) it is recommended to run the programm with a little extra memory to avoid *process out of memory* errors. The easiest way to do this is by running the command as `node <path-to-osmtogeojson>` and setting the `--max_old_space_size=…` parameter to the available memory size in MB (osmtogeojson typically needs about 4-5 times the input data size): | ||
$ node --max_old_space_size=8192 `which osmtogeojson` large.osm > large.geojson | ||
* as a **nodejs library**: | ||
$ npm install osmtogeojson | ||
@@ -33,3 +37,3 @@ | ||
* as a browser library: | ||
* as a **browser library**: | ||
@@ -36,0 +40,0 @@ <script src='osmtogeojson.js'></script> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
277098
26
7044
76
6
4
3
2
+ AddedJSONStream@0.8.0
+ AddedJSONStream@0.8.0(transitive)
+ Addedjsonparse@0.0.5(transitive)
+ Addedthrough@2.2.7(transitive)