This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |