Skip to content

Instantly share code, notes, and snippets.

@helloworld
Created May 10, 2015 14:45
Show Gist options
  • Save helloworld/cdb42c3ec913ee77f24f to your computer and use it in GitHub Desktop.
Save helloworld/cdb42c3ec913ee77f24f to your computer and use it in GitHub Desktop.
automate () {
read num #assigns input to num
path="tl_2013_"
patha="$num"
pathb="_sldu"
path="$path$patha$pathb"
path="cd $path"
eval $path
execute="ogr2ogr -f GeoJSON $num.json tl_2013_$num"
executeconcat="_sldu.shp"
execute="$execute$executeconcat"
eval $execute #runs the thing above
execute2="topojson -s 7e-9 --id-property=+GEOID -o SLDU_"
execute2+="$num.json -- $num.json"
eval $execute2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment