marook / osm-read

an openstreetmap XML and PBF data parser for node.js and the browser
GNU Lesser General Public License v3.0
107 stars 25 forks source link

Invalid typed array length in arrayBufferReader Line 12 #34

Closed BMo-design closed 8 years ago

BMo-design commented 8 years ago

Hi, I want to parse a pbf generated by my geoserver and get a "Invalid typed array length in arrayBufferReader Line 12" the size variable in line 11 is 445776650.

I tried the same with a Mapbox pbf -> same issue.

Any ideas?

nrenner commented 8 years ago

osm-read is about parsing the OSM PBF format, it will not work with the Mapbox vector tile format. Which is also based on Protocol Buffers but has a different structure (I find it very unfortunate that Mapbox has been calling and naming their format pbf too - but seem to switch to using mvt recently).

See https://github.com/mapbox/awesome-vector-tiles for other libraries to use.