- Breaking: in Node, due to upgrade to
pbf
v3,encode
will returnUInt8Array
instead ofBuffer
. You can useBuffer.from(arr)
to convert the result to aBuffer
. - Fixed a bug where
FeatureCollection
customproperties
object wasn't encoded.
- Breaking: removed TopoJSON support. It will likely branch out into a separate repo/project.
- Breaking: changed encoding to not include the closing point of a polygon ring.
- Fixed a bug with encoding single-ring single-polygon multipolygon.
- Fixed a bug where floating point errors could sometimes accumulate, preventing proper roundtrip.
- Fixed a bug that sometimes led to a freeze when encoding high-precision data.
json2geobuf
andgeobuf2json
executables now also accept filename in addition to stdin
A complete redesign and rewrite of Geobuf. Most notable improvements:
- 4-6 times smaller file sizes
- 3-4 faster encoding and decoding
- TopoJSON support
- arbitrary and nested properties support
- easier API (just
encode
anddecode
methods that accept any kind of data)
Note that it's not compatible with the previous version. Old Geobuf files will need to be decoded using version 0.2.2.