A Node.js utility to merge multiple GeoJSON files into a single FeatureCollection, supporting both in-memory and streaming modes.
geojson-merge is a Node.js library and command-line tool designed to combine multiple GeoJSON files into a single FeatureCollection. It solves the problem of aggregating geospatial data from disparate sources, supporting both in-memory merging for convenience and streaming for handling large datasets efficiently.
Developers and data engineers working with geospatial data in Node.js environments, particularly those needing to preprocess or combine GeoJSON files for mapping, analysis, or visualization pipelines.
It offers a simple, focused API with dual modes for flexibility, is maintained by Mapbox for reliability, and includes a CLI for easy integration into shell scripts or data workflows without complex dependencies.
Merge multiple GeoJSON files into one FeatureCollection.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Accepts any valid GeoJSON type including geometries, features, and collections, merging them into a unified FeatureCollection as shown in the merge API example.
Offers mergeFeatureCollectionStream for high-performance handling of datasets exceeding memory limits, with optimized streaming for big geospatial files.
Includes a command-line interface with wildcard patterns, enabling easy merging in terminal scripts without writing custom Node.js code, as detailed in the cli section.
Maintained by Mapbox, a trusted name in geospatial technology, ensuring ongoing updates and support for the library.
The streaming function only supports FeatureCollections as input, not other GeoJSON types, restricting its use with mixed data sources as admitted in the README.
Requires Node.js and npm installation, which can be a barrier for environments or developers not embedded in the JavaScript ecosystem.
Lacks built-in features for geospatial transformations, validation, or complex processing, necessitating additional tools for advanced workflows.