From charlesreid1

(Created page with "=Shapefiles= ==Getting Shapefile Data== To download elevation data in shapefile format: Zoom into the area you want Check "US Topo" and click Find Products Next to each i...")
 
Line 13: Line 13:
Download the shapefile data and unzip it
Download the shapefile data and unzip it


==What To Do With Shapefiles==
==Shapefiles to GeoJSON==


We'll convert these shapefiles to something better for the web: GeoJSON
We'll convert these shapefiles to something better for the web: GeoJSON

Revision as of 10:02, 28 July 2016

Shapefiles

Getting Shapefile Data

To download elevation data in shapefile format:

Zoom into the area you want

Check "US Topo" and click Find Products

Next to each item, there are four links - the third one is "Download"

Download the shapefile data and unzip it

Shapefiles to GeoJSON

We'll convert these shapefiles to something better for the web: GeoJSON

See http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/

Install homebrew, then:

brew install gdal

This will install a utility called ogr2ogr, which we'll use to convert shapefiles to GeoJSON files.