Lesson 4: Training Model & User Interface Components 1
Infrastructure/Supply Data Highway Networks Intersection Data Transit Networks
User/Demand Data Zonal Data Matrices Other Databases
Visualization Environments Visual Project File - VPR ArcView Map Document File MXD
Review of Cubetown Training Model
Review of Cubetown Training Model (cont d) Cube Voyager Demo Model 25-zone four-step Voyager passenger demand forecasting model with feedback to trip distribution (Internal zones = 1-16) Also available: Applying the forecasting system
Roadway Centerline Data Usually provided in ESRI shapefile or geodatabase feature class format Cube Requirements:
The Network Window Displays a network and other layers Menu commands and toolbar buttons configure display Settings are stored in a VPR file (Visual Project)
Network Toolbar & Core Function Pointer (Shift+F7) Undo Last Edit Change (Shift+Z) Zoom in / zoom out Zoom all Previous view Pan Resize Plot page Center on Nodes Refresh Current View
Navigating the View Legend Layer Control Select Top Layer Display Layer Information Browse Link Table Browse Node Table Bookmarks More Buttons
Layer Control
Layer Parameters (Properties)
Display Layer Information
File > Options > NET/GIS > Network Window
Layer Parameters > Link Posting
Changing Font Size for Link Post Or, use File > Options >General > Font
Node Posting
Link Color Specification
Node Color Specification
Boundary Layer Settings 3 2 1
Creating a new Log File 1 Log Files (1/2) 2 3 4 5
Log Files (2/2) Save Edit Log Play Edit Log
Building Paths using Path File (1/2)
Building Paths using Path File (2/2)
Select Link Analysis using Path File (1/2)
Select Link Analysis using Path File (2/2)
Transit Line Manager
Transit Display Lines
Transit Stops/Non-Stops Show Stop/Non-Stop Nodes
Transit Display Settings Color Color Palette
Transit Buffers Stop
Transit Buffers Link
Transit On/Off Bar
Transit Line Profile
Building Paths using Transit Route File (1/2)
Building Paths using Transit Route File (2/2)
Scenario Manager Merge Refresh Properties Run Run Multiple Run Script See Run Report Add child
Merging Catalogs (1/2)
Merging Catalogs (2/2)
Catalog Properties
Scenario Manager Settings
Changing Font Size for Docking Windows
Application Information Application Tools > Application Options > Application Information
Application View Screen Font - Printer Font - Show Legend - Hide Unused Files -
Application Boxes Color - Sizes - File Names - Description and File Names - Edited File Descriptions - Control File Title -
Application Tools (Home ribbon tab) Process Templates - Auto Name Files - Create External Files - Delete Output Files - Add to Catalog Data - Interactive Order Check - Redraw -.
How to add application group from another catalog (1/2)
How to add application group from another catalog (2/2)
Node Charts 1 3 Sample Node Chart 2
Desire Lines (1/2) 1 2 3 4
Desire Lines (2/2) 5 Enter the inputs as follows: Select Display 6 Desired Lines
Coding Turn Penalty (1/2)
Turn Penalty in Cube is coded as: To Code penalties: Specify the values in the appropriate boxes Coding Turn Penalty (2/2) Penalty in Cost Prohibited
Intersection View Input Data (1/3)
Intersection View Input Data (2/3)
Intersection View Input Data (3/3)
Intersection View Output Data (1/3)
Intersection View Output Data (2/3)
Intersection View Output Data (3/3)
True Shape Display Before After True Shape Display ON
Drawing / Screenline Layer Contains view annotation elements Drawing > New Object to create Use pointing mode to position & resize Save file when done
Create Highway Shield 1. 2.
Legend Setup
Print, Page and Legend Setup 1. 2. 3. 4.
Creating User Templates 1. Open your user template script file in Cube Base 2. Go to File>>Tools>>User Templates 3. Select *** Add New Template *** 4. Enter new template name.
Running Module Templates Module Templates can be accessed by the following means
Example of User Templates (1/5)
Example of User Templates (2/5)
Example of User Templates (3/5)
Example of User Templates (4/5)
Example of User Templates (5/5)
New Data Manager Interface in Cube 6
Anatomy of Data Manager Toolbar buttons Add Data Create Geodatabase Refresh Workspaces Import/Export Data Build Network From Shape Help Workspace
Workspace
New Dataset Geodatabase Command Menu New Feature Class New Table Compact Build Network from Shape Import, Export Remove Validate Cube Geodatabase
Feature Data Set Command Menu Open Data New Feature Class Import, Export Copy Delete Rename Update Maximum Zones (#) Spatial Reference
Open the Data Manager
Create a new geodatabase 1 3 2
Import data
Import Highway Network with True Shape
Import Transit Lines
Import Zonal Layer (TAZ.shp)
Import Junction Tables
Import dbase Table
Geodatabases in Model Catalogs Cube provides two complimentary ways to organize and store model information: The Model Catalog is a file that tracks the location and model function of other files within the main (root level) model folder. The Geodatabase is a file that acts as a container for any geographic data that are used within the model and related maps.
Link input networks
Output network with restored geometry 1 2 3 4 5
Make GDB outputs scenario-specific 1 3 2
Output transit assignment to GDB
GIS Toolbar GIS Window Components View Switcher Editing Toolbar Graphics Toolbar Table of Contents Data View Tips & Messages
GIS Toolbar (1/2)
GIS Toolbar (2/2)
Graphics Toolbar (1/3)
Graphics Toolbar (2/3)
Graphics Toolbar (3/3)
Floating Toolbars GIS Editor Sub-Toolbar
Floating Toolbars GIS Layout Sub-Toolbar
Layout Toolbar
Lesson 5: Working with Cube Base + GIS Window + Data preparation 99
Working with Cube GIS Exercises
Exercise 1: Build Network From Feature Class (Shape)
Important Options to Consider A point layer can be used to specify node locations The level field allows you to set which lines connect Directional data stored in field pairs can be used A, B node numbers are not always required on input
Overlay Network on Polyline Shapefile
Turn On True Shape Display On the GIS Tools tab, click on the True Shape Display button
Exercise 2a: Develop Centroid Locations
Exercise 2b: Develop Centroid Connectors
Network Options
Saving Your Work The Visual Project File: Close the Network Window and save the Network.NET file as well as a Project File
Exercise 2c: Consolidate Links With Same Attributes Typically, roadway centerlines have many nodes that are not junctions less efficient Cube can identify strings of links that have the same attributes and consolidate them Set the attributes that determine calculation of link speed and capacity to Must Match Note: Sequence field in True Shape relationship will be updated accordingly
Sequences & Generate True Shape Equivalency A Sequence field allows you to have multiple shapes per network link Note that you can also generate true shape equivalencies, which performs the following:
Modify Shape Database Structure Add a Sequence field for true shape
Saving Your Work
Moving to Cube GIS Working with Cube Geodatabase files Working with Cube GIS
Open the Data Manager
Exercise 3: Create a new geodatabase
Exercise 4: Import data
Import additional data Public Transit Zonal Data DBF Tables Junction Data
Junction tables
Automatic Import Checks SQL reserved words to avoid:
Storing the Network in a Geodatabase
Link Posting Selection Options
Node Posting Selection Options
Node Color Specifications
Link Color Specifications
GIS Window Options
The GIS Window Editing Toolbar GIS Toolbar Data View View Switcher Table of Contents Pointer Coordinates
The GIS Toolbar: Navigation Add Data Pan tool Pointer tool Zoom to full extent Rectangular zoom in/out Previous / next extent Fixed zoom in/out Refresh map window
The GIS Toolbar: Selection Select Features Pointer Select By Graphics Tool Select Features On Screen Button Clear Selection Button Zoom to Selection Button Select All Button Switch Selection Button
The GIS Toolbar: Search Measure Tool Find Tool Bookmarks Menu My Places Button Set Scale Drop-Down
The Graphics Toolbar Enabled via Show/Hide Graphics Toolbar under View on Home Ribbon Graphical shapes are non-geographic map elements Similar to Drawing Layer in Cube 4 Network Window Can be used to: Draw graphical shapes Align graphical shapes (layout only) Adjust graphical drawing order & grouping Nudge & rotate graphical shapes
The Feature Explorer Feature Explorer: Select By Attributes: Set Selectable Layers:
The Editing Toolbar Editor drop-down menu Edit Feature Create Feature Two-Way Editing Active layer drop-down menu Undo/redo buttons
The Table of Contents
Managing Multiple Layers
Exercise 5: Adding Attributes and Making Attribute Calculations
Adding links to the network
Copying Link Attributes
Editing Link Geometry
Area-wide Editing Using a Polygon
Representing Intersections Cube provides four ways to represent congestion on the network: In this exercise we will code the intersection information necessary for junction-based capacity restraint
Exercise 6: Representing Intersections
Representing Intersections (cont d)
Representing Intersections (cont d)
Representing Intersections (cont d)
Representing Intersections (cont d)
Representing Intersections (cont d)
Exercise 7: Representing Intersections
Representing Intersections (cont d)
Exercise 8: Copying Data Between GDB Files
Select Transit Data for Editing
Preparing the View
Exercise 9: Create a New Transit Line
Coding Line Attributes
Changing Line Display Characteristics
Coding Public Transit Systems
MiniQuiz 2 Transportation modeling networks are stored in the following formats in Cube The following are not Public Transit related files in Cube:
Lesson 6: Applying Cube Forecasting System 157
Applying Cube Forecasting System
Improving Network Quality
Editing Link Shape Vertices
Run Corrected Base Scenario Using Task Monitor
Build Network from Shape Layer (by Cube Base) Build Network from Shapefile
Build Network from Shape Layer (by Voyager)
Link Consolidation (by Cube.exe) Ability to consolidate links via script Sample script
Lesson 7: Case Studies with Cube 165
Case Studies With Cube #1: Building a Road
Complete Roadway Segment Using Template Link
Review Roadway Scenario Outputs
Case Studies With Cube #2: Increase Transit
Visualizing Scenario PT Loadings Using Bandwidths
Case Studies With Cube #3: Land Use Changes
Visualize Current Land Use
Modify Land Use Assumptions
Creating a Desire Line Display
Mapping & Reviewing Data The Layout View Example Maps Saving Settings in the VPR file Sharing maps using MXD files
The Layout View Layout Navigation Tools Ink Pen Drawing Tools New Data Frame Button Layout Menu Focus Data Frame Control
Example Maps
Node/Point Chart Maps
Intersection LOS Map
Link Volume and Speed
The roles of VPR and MXD files The Visual Project (VPR) file is still used to track and store settings made in Cube, including: A VPR is created for each MDB, with the same name as the MDB You can import settings from an existing VPR file for another MDB The MXD file is an ArcGIS-compatible map document, containing a snapshot of the current symbol style settings, with no link to VPR Changes stored in the VPR do not affect the MXD and vice versa!
Share With GIS Staff
Lesson 8: Cube Reports Inputs Outputs 183
Cube Reports Overview and motivation A tour of the user interface Creating Reports with the Training Model
An overview of Cube Reports
An overview of Cube Reports Cube Reports works seamlessly through Cube Base, in order to support modeling from It is an extension which can be used on any size of project, for any type of agency or company Cube Reports can be used to:
Create Reports without Cube Reports Consider multiple steps required to generate charts and reports without Cube Reports:
Example: standard approach
Example: standard approach (cont d) The references among the input files and the final output is lost This process is tedious and error-prone. The process becomes more aggravating when: It takes a long time to
Example: standard approach (cont d) It is extremely time consuming The project backup needs to be documented with extreme care
Reporting and charting with Cube Reports Cube Reports eliminates errors and cuts reporting time With Cube Reports you use a three step process:
Example: Cube Reports approach (cont d) A typical example of the way Cube Reports can be used profitably is to evaluate standard parameters of loaded networks across different scenarios Cube Reports can be used in many different ways, and set up accordingly Depending upon the audience, we can setup different templates
Example: Cube Reports approach (cont d)
Key advantages of Cube Reports The references among the input files and the final output is automatic This process is simple and the results can be checked immediately The process becomes extremely useful when: It is possible to compare two or more scenarios just by double clicking No need to export/copy/paste multiple databases
Lesson 9: Scripting and Text Editing Environment in Cube6 195
Window Layout
Creating New Script/Text/Print File File > New > Script/Text/Print
Opening Script File in Application Manager Click script file Click right-mouse button Choose Text Edit
Tab Mode Toggle 1 Click More Buttons Choose Tab Mode Toggle Click Tab Mode Toggle Choose a tab option 2 4 3
Settings for Text Editor File > Options > Text/Script
Core Editing Functions (1/3)
Core Editing Functions (2/3)
Core Editing Functions (3/3)
Scripting NETWORK Module We will now focus on the Cube NETWORK module as an example of Cube scripting Many of these concepts apply to other Cube Voyager modules Topics to be presented include:
Scripting NETWORK Module (cont d) Inputs: Up to 10 Link Files and 10 Nodes Files or 10 Networks Outputs: 1 Network (GDB or Voyager/TP+ NET); Variables: Unlimited Link & Node Example
Network program The purpose of the network program is to read data sets supplying link and node information, merge and compute records, and build a network data structure INPUT Node (NI) Link (LI) This is accomplished in multiple phases NODEMERGE Phases process different kinds of data: LINKMERGE SUMMARY
Network Program Updated (1/2) Network program is updated Example 1 Sample script file
Network Program Updated (2/2) Example 2 Sample script file
Scripting of network input and output files FILEI LINKI[#] = NODEI[#] = LOOKUPI[#] = FILEO NETO = LINKO = NODEO = PRINTO[#] =
Exercise 10: Output only links with Screenline data Task Inputs: Outputs: Hints:
Exercise 10: Solution
Exercise 11: Update link attributes Task: Inputs: Outputs: Hints:
Exercise 11: Solution
Exercise 12: Using Lookup tables Task: Inputs: Outputs: Hints:
Exercise 12: Renumber Zones Task: Renumber Zones. Move Zone #26 to Zone#17 Inputs: Outputs: Hints:
Exercise 13: Add New Zone and Renumber
Exercise 13: Solution
Exercise 14: Compare Two Networks Task: Compare two Cube highway networks using script Inputs: Outputs: Hints:
Exercise 14: Solution: Compare Two Networks Modify Distance Delete Modify Speed
Exercise 15: Compute VMT, VHT, and RMSE Task: Inputs: Outputs: Hints:
Exercise 15: Solution
Scripting Other Modules In addition to the NETWORK module, other modules for Cube scripting include: