ponlawat-w / osm-pbf-io Goto Github PK
View Code? Open in Web Editor NEWOpenStreetMap .osm.pbf file reader and writer for node
Home Page: https://www.npmjs.com/package/osm-pbf-io
OpenStreetMap .osm.pbf file reader and writer for node
Home Page: https://www.npmjs.com/package/osm-pbf-io
I'm using pbfs from https://download.geofabrik.de/north-america/us.html, and all the node.lng results are NaN, while other data is correct.
I tested with this other parser: https://www.npmjs.com/package/osm-pbf-parser, and the node.lng data is correct
It's known that OSM uses 64bit integer as identifier, but JavaScript only supports float numbers natively.
For an extra-large 64bit integer, the maximum decimal digits possible is 20 (2^64=18446744073709551616),which cannot be represented by a double floating number, the later supports 16 decimal digits at most.
So my question is how to deal with large id, whose length exceeds 16 decimal digits?
Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.