Convert CSV and TSV files into GeoJSON format for mapping applications.
csv2geojson is a Node.js library and command-line utility that converts CSV and TSV files into GeoJSON format. It automatically detects latitude and longitude columns in tabular data and transforms them into geographic features suitable for mapping applications. This tool solves the problem of preparing spreadsheet data for use in web maps and GIS software.
Developers and data analysts working with geographic data who need to convert tabular formats like CSV into GeoJSON for mapping libraries such as Mapbox, Leaflet, or geojson.io.
It provides a lightweight, dependency-free solution with both CLI and API interfaces, making it easy to integrate into data processing pipelines. Its automatic delimiter detection and column mapping reduce manual configuration, speeding up the conversion workflow.
magically convert csv files to geojson files
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically detects and handles various delimiters like comma, tab, pipe, and semicolon, simplifying file parsing without manual configuration, as shown in the --delimiter option and auto function.
Offers command-line tool, Node.js API, and browser script, making it adaptable for different environments, evidenced by the CLI usage and npmcdn.com standalone script.
Includes utilities like toPolygon and toLine to convert point collections into more complex geometries, extending functionality beyond simple point data.
Built with minimal dependencies, focusing on simplicity and reliability, as highlighted in its philosophy and integration with geojson.io.
Assumes data uses standard latitude and longitude columns; doesn't support other coordinate systems like UTM or custom projections, which can be restrictive for specialized geospatial data.
Error reporting is present but lacks detailed validation or recovery mechanisms for complex data issues, such as inconsistent formats or missing values beyond basic parsing errors.
Converts data as-is without features for handling missing values, formatting inconsistencies, or data sanitization, which may require additional preprocessing steps.