Here's the data I had to preserve when testing a mailman migration from one server to another on Ubuntu 14.04:
sudo
$ sudo su -l root
This is an example of how to obtain and add elevation to a csv file. If starting with a shapefile, you can convert to CSV using the ogr2ogr command:
ogr2ogr -f CSV bars_sm.csv bars_sm.shp -lco GEOMETRY=AS_XY
Once you have a CSV file, run the python script points_elev.py in the same directory as the CSV file with python points_elev.py
. The script requires the python geocoder library to be installed.
The script should write out a new CSV file with an additional elevation column. If no elevation is found, the script will simply add a 0 in the elevation column.
NAME | STREET | STREET2 | CITY | STATE | ZIP | PHONE | TYPE | URL | SOURCE | |
---|---|---|---|---|---|---|---|---|---|---|
3cross Brewing Company | Worcester | MA | 01602 | Planning | Brewers Association | |||||
50 Back Brewing Co | 5 Village Rd | Pepperell | MA | 01463 | (978) 265-1610 | Contract | www.50back.com | Brewers Association | ||
Aeronaut Brewing Company | 14 Tyler St | Somerville | MA | 02144 | Planning | Brewers Association | ||||
Amherst Brewing Co | 10 University Dr | Amherst | MA | 01002-2243 | (413) 253-4400 | Brewpub | www.amherstbrewing.com | Brewers Association | ||
Backlash Beer Co | Boston | MA | 02215 | Contract | www.backlashbeer.com | Brewers Association | ||||
Bad Martha Brewing Company | Edgartown | MA | 02539 | Contract | Brewers Association | |||||
Barnstable Brewing | 485 W Main St | Needham | MA | 02601 | Planning | Brewers Association | ||||
Barrington Brewery and Restaurant | 420 Stockbridge Rd | Ste 7 | Great Barrington | MA | 01230-9512 | (413) 528-8282 | Brewpub | www.barringtonbrewery.net | Brewers Association | |
Battle Road Brewing Co | Ipswich | MA | Contract | www.battleroadbeer.com | Brewers Association |