marook / osm-read

an openstreetmap XML and PBF data parser for node.js and the browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid typed array length in arrayBufferReader Line 12

BMo-design opened this issue · comments

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?

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.