I've never liked having to open up QGIS or ArcGIS to convert a CSV into a shapefile/geojson. It always seemed like there should be an easier way, and it turns out that there is.
First, you'll want to install @tmcw's csv2geojson library, and GDAL.
npm install -g csv2geojson && brew install gdal
Second, let's convert your CSV to a GeoJSON
csv2geojson data.csv > output.geojson
Lastly, depending on how you collect and use your data, that may be all you need to do. I like to store as much of my spatial data on Github as possible, which requires reprojecting the data from UTM Zone 19(EPSG:26919) to WGS 84(EPSG:4326). With ogr2ogr
, this is pretty simple.
ogr2ogr -F geojson -s_srs epsg:26919 -t_srs epsg:4326 projected.geojson output.geojson
Hope that helps!