Comments (9)
Are you using the current master branch? There are some issues in it. Have you tried v0.6.0 ( https://github.com/marook/osm-read/releases/tag/v0.6.0 )?
If v0.6.0 does not work for you it would be interesting which node.js version you are using?
from osm-read.
I'm using v0.6.0. I installed it using npm. I'm using nodejs v8.15.0.
from osm-read.
I updated nodejs to v11.6.0 and it's working now :)
from osm-read.
cool :)
from osm-read.
I now get a different error
fs.js:143
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at makeCallback (fs.js:143:11)
at Object.close (fs.js:401:20)
at Object.close (/home/rhz/research/cinv/tsunami/engine/node_modules/osm-read/osm-read-pbf.js:10:624)
at Object.n.close (/home/rhz/research/cinv/tsunami/engine/node_modules/osm-read/osm-read-pbf.js:14:655)
at s (/home/rhz/research/cinv/tsunami/engine/node_modules/osm-read/osm-read-pbf.js:14:300)
at /home/rhz/research/cinv/tsunami/engine/node_modules/osm-read/osm-read-pbf.js:14:418
at Object.readPBFElementFromBuffer (/home/rhz/research/cinv/tsunami/engine/node_modules/osm-read/osm-read-pbf.js:8:49)
at Inflate.cb (/home/rhz/research/cinv/tsunami/engine/node_modules/osm-read/osm-read-pbf.js:14:5413)
at Inflate.zlibBufferOnEnd (zlib.js:124:10)
at Inflate.emit (events.js:193:15)
Any ideas?
from osm-read.
By running the project using ndb I see a call to parser.close()
without giving any callback to the function (line 66 of pbfParser.js
). Could this be the source of the issue?
from osm-read.
Should I open a new issue with this error or is it ok to continue here?
from osm-read.
The problem was indeed in that line. I replaced parser.close()
by parser.close(() => {})
and it's working now. Also, I cloned the repo and I'm importing the library directly from lib/pbfParser.js
instead of using the version produced by browserify, not sure if that makes a difference. I'll leave the issue open in the hope that it gets fixed in a v0.6.1 branch and published to npm :)
from osm-read.
Any news on this?
from osm-read.
Related Issues (20)
- lat lon are not in WSG84 format HOT 5
- Relations HOT 2
- Relation members output format HOT 6
- number instead of string for id, uid and ref? HOT 3
- Pause/Resume HOT 12
- Parser getting stuck HOT 1
- Cannot read property 'byteLength' of undefined HOT 5
- Example pbf.html is Broken HOT 6
- Too Much Recursion HOT 4
- Get tag "center" from overpass-api response xml HOT 2
- Invalid typed array length in arrayBufferReader Line 12 HOT 1
- Allocation failed - process out of memory HOT 1
- Tags unresolved HOT 3
- Vulnerability in protobuf dependencies HOT 2
- Is it possible to do any progress indication HOT 1
- Module not found: Error: Can't resolve '../../node_modules/zlibjs/bin/inflate.min.js' HOT 1
- Would exposing an async iterator API suit this library? HOT 3
- Why not store IDs as BigInt? HOT 4
- primitivegroup.length - Is it always 1? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm-read.