Gist 4ab7840c00aa352f278636ea3f3f0d3e
✓ Published0🌍 Public
TThomasG77
Last edited Mar 22, 2023
Created on Mar 22, 2023
This example demonstrates streaming merge of two French cadastral parcel GeoJSON files into a single unified feature collection, output as a continuous JSON stream to standard output. It shows how to combine multiple geospatial datasets without loading them entirely into memory. The code uses the `geojson-stream` library for parsing and stringifying GeoJSON features, Node.js `fs.createReadStream` for file input, and the `zlib` module to decompress gzipped source files. Data originates from the Etalab cadastre dataset, with separate scripts handling zipped and unzipped input files.
AI-generated description