This file contains hidden or 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
| ogr2ogr -f GeoJSON -t_srs crs:84 counties.geojson cb_2017_us_county_20m/cb_2017_us_county_20m.shp |
This file contains hidden or 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
| import sys | |
| import json | |
| import csv | |
| data = {} | |
| geojson = {} | |
| ## Step 1: Load the labor force data set, and store into a dictionary | |
| ## based on the state and county codes | |
| with open('labor-force.csv', 'r') as f: |
This file contains hidden or 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
| ///////////////////////////////////////////// | |
| /// using CoCreateGuid /// | |
| /////////////////////////////////////////// | |
| GUID guid; | |
| std::string guidString; | |
| HRESULT hr = CoCreateGuid(&guid); | |
| if (SUCCEEDED(hr)) | |
| { | |
| stringstream stream; | |
| stream << std::hex << std::uppercase |