mirror of
https://github.com/flatgeobuf/flatgeobuf.git
synced 2025-12-08 19:06:03 +00:00
9 lines
291 B
JavaScript
9 lines
291 B
JavaScript
import { geojson } from 'flatgeobuf';
|
|
|
|
async function streamtest() {
|
|
const response = await fetch('https://flatgeobuf.org/test/data/UScounties.fgb');
|
|
for await (const feature of geojson.deserialize(response.body)) console.log(JSON.stringify(feature, undefined, 1));
|
|
}
|
|
|
|
streamtest();
|