Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jblockrex on github.
  • I am jblockrex (https://keybase.io/jblockrex) on keybase.
  • I have a public key ASCHpzmoLHofAzyP1AjTW3QM8xw-Dg5A6mHAuZpzDucdbwo

To claim this, I am signing this object:

@jblockrex
jblockrex / geojson-conversion.sh
Created May 13, 2016 20:46 — forked from benbalter/geojson-conversion.sh
Bulk convert shapefiles to geojson using ogr2ogr
# Bulk convert shapefiles to geojson using ogr2ogr
# For more information, see http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/
# Note: Assumes you're in a folder with one or more zip files containing shape files
# and Outputs as geojson with the crs:84 SRS (for use on GitHub or elsewhere)
#geojson conversion
function shp2geojson() {
ogr2ogr -f GeoJSON -t_srs crs:84 "$1.geojson" "$1.shp"
}