Skip to content

Instantly share code, notes, and snippets.

@benbalter
benbalter / csv-to-geojson.sh
Created June 25, 2015 07:11
Convert CSVs to GeoJSON, in bulk
#!/bin/bash
# Convert CSVs to GeoJSON, in bulk
# Usage: ./csv-to-geojson.sh [URL to list of CSV files]
# Outputs geoJSON files to the `output` folder
# Install csv2geojson if it's not installed
type csv2geojson || npm install -g csv2geojson
# Cleanup
rm -Rf ./tmp