- Save
get_data.sh
chmod +x get_data.sh
./get_data.sh
- This will produce a folder
columns
that contains a shapefile of all Macrostrat column geometry, and a foldermibasin
that contains a shapefile of the GMUS data for the Michigan Basin
Last active
August 29, 2015 14:15
-
-
Save jczaplew/6dfb340add8a6e362eee to your computer and use it in GitHub Desktop.
Get Macrostrat columns + GMUS geometry for Michigan Basin
This file contains 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
curl "http://dev.macrostrat.org/api/columns?all&format=geojson_bare" -o columns.json | |
mkdir columns | |
ogr2ogr -skipfailures -f "ESRI Shapefile" columns/columns.shp columns.json | |
curl "http://dev.macrostrat.org/api/geologic_units/intersection?shape=POLYGON((-86.8%2041.3,%20-86.8%2045.7,%20-82.2%2045.7,%20-82.2%2041.3,%20-86.8%2041.3))&type=gmus&buffer=0&format=geojson_bare" -o mibasin.json | |
mkdir mibasin | |
ogr2ogr -skipfailures -f "ESRI Shapefile" mibasin/mibasin.shp mibasin.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment