ARC ABMVIZ HTML 5
- Add the scenario name to the scenarios.csv definition file in the data folder
- Create a new folder in the data folder with the scenario name
- Copy in the required visualization data tables, each with the following set of fields:
- BarChartAndMapData.csv: ZONE, COUNTY, BAR, QUANTITY
- TimeUseData.csv: PERSON_TYPE, PER, ORIG_PURPOSE, QUANTITY
- 3DAnimatedMapData.csv: ZONE, PER, QUANTITY
- TreeMapData.csv: GROUP1, GROUP2, GROUP3, ..., QUANTITY
- RadarChartsData.csv: AXIS, CHART, QUANTITY
- BarChartData.csv: BARGROUP, COLUMNS, QUANTITY
- Copy transit stop data and origin-destination data (at the superdistrict level) from Cube output:
- Desirelines.csv: ORIG, DEST, WRKSOV, WRKHOV, WRKTRN, NWKSOV, NWKHOV, NWKTRN, ALLSOV, ALLHOV, ALLTRN, WRKALL, NWKALL, ALLALL
- TransitStops.shp (see next step)
- Convert TransitStops.shp to TransitStops.topojson before committing it to the repository
# Setting up the first time ---
# Install GDAL, which installs ogr2ogr (http://www.gdal.org/)
# Install node.js (and npm) (https://nodejs.org/en/download/)
# Install topojson-server using npm
npm install -g topojson-server
# Convert shapefile to topojson ---
cd ~/path/to/your/shapefile
ogr2ogr -f GeoJSON -t_srs EPSG:4326 TransitStops.geojson TransitStopData.shp
geo2topo transit=TransitStops.geojson > TransitStops.topojson
#Data folder
- scenarios.csv - Defines each scenario (i.e. model run) available to the user
- BS10 - Example scenario data folder with its name equal to its scenarios.csv entry
- ZoneShape.GeoJSON - ARC TAZs geojson feature collection with the id property equal to the TAZ number
- cb_2015_us_county_500k GEORGIA.json - Counties from Census; converted to json with mapshaper
#BS10 example scenario folder
- BarChartAndMapData.csv - demo data source for the bar chart and map visual - trips by origin zone, county, and mode
- TimeUseData.csv - demo data source for the time use visual - persons by type, hour of the day, activity purpose
- 3DAnimatedMapData.csv - demo data source for the 3D animated map visual - persons not at home by zone, hour of the day
- TreeMapData.csv - demo data source for the tree map visual - trips by mode groups and mode
- RadarChartsData.csv - demo data source for the radar charts visual - four summaries, jobs housing balance, accessible employment, transit mode share, and zero car transit trips per household
- BarChartData.csv - demo data source for the bar chart visual - activity patterns by person type
#Scripts folder
- convertWKTtoGEOJSON.R - R script to convert the old ABMVIZ wellknowntext format TAZ polygons to GeoJSON
- BarChartAndMapExample.sql - SQL script to query the ABMVIZ DB to produce the bar chart and map visual demo data set
- TimeUseExample.sql - SQL script to query the ABMVIZ DB to produce the time use visual demo data set
- 3DAnimatedMapExample.sql - SQL script to query the ABMVIZ DB to produce the 3D animated map demo data set
- TreeMapExample.sql - SQL script to query the ABMVIZ DB to produce the tree map visual demo data set
- RadarChartsExample.sql - SQL script to query the ABMVIZ DB to produce the radar charts visual demo data set
- BarChartExample.sql - SQL script to query the ABMVIZ DB to produce the bar chart visual demo data set
#Exporting demo data set from SQL Server
- Open SQL server management studio
- Open one of the example SQL query scripts such as BarChartAndMapExample.sql
- Set the user - [ATLANTAREGION\TAMConsult] - and schema (i.e. scenario) - BS10 - to query
- Execute the script
- Right click in the upper left corner of the results table and select Copy with Headers
- Paste the result in Excel and save as a CSV file into the relevant data\scenario folder
#Run demo
- Requires a http server such as Python's SimpleHTTPServer
- Run the http server from this project directory:
- Python 2: python -m SimpleHTTPServer
- Python 3: python -m http.server
- Go to http://localhost:8000 in your browser
#Publish site as github pages under RSG account
- Push the master branch to a branch called gh-pages
- Site address is http://rsginc.github.io/ABMVIZ
#Publish site as github pages under ARC account
- Notify ARC's IT group
- ARC clone the repo to their GitHub account - https://github.com/atlregional
- ARC push the master branch to a branch called gh-pages
- Site address is http://atlregional.github.io/ABMVIZ