flatgeobuf / flatgeobuf

A performant binary encoding for geographic data based on flatbuffers
https://flatgeobuf.org
BSD 2-Clause "Simplified" License
688 stars 77 forks source link

Error: Node size must be at least 2 #363

Open xyjwyq opened 7 months ago

xyjwyq commented 7 months ago

Hello, I use node to serialize geojson data and get the corresponding fgb data. Alternatively, I can use geojson.deserialize parsing on the web side for full loading. However, when used to filter the display, I got this error: Error: Node size must be at least 2. How to solve this problem? 7aedef31-a666-4f15-8968-cf3619f5e8a1 f8161d29-1b24-4978-92ed-7b00371e278b b6acdd99-1191-42e3-9bc5-c81b9e39f7e4

bjornharrtell commented 7 months ago

It's because the JS/TS implementation doesn't include spatial index generation (yet). The error message from the deserialization should be improved.