CMAP-REPOS / mhn_programs

Code for managing CMAP's Master Highway Network geodatabase
http://www.cmap.illinois.gov/data/transportation/modeling
5 stars 2 forks source link

Check for directional links with same from-to node pair #108

Open nmpeterson opened 6 years ago

nmpeterson commented 6 years ago

It is currently possible to add two links to the MHN that connect the same two nodes. For this to happen, either the BASELINK values or the digitized direction (and therefore the ANODE and BNODE values) must differ. If at least one of the links represents a two-way road, the Emme batchin files may contain two links with the same inode and jnode, and only one of them will be imported. (The other will be ignored with a non-fatal warning.)

The MHN processing scripts should check for this possibility and warn the user. This could be done in one of two places:

  1. When running "Incorporate Edits", check the DIRECTIONS values on any links sharing the same nodes to predict whether this issue may occur later; or,
  2. When running "Generate Highway Files", check for duplicate inode-jnode pairs during the creation of the Emme batchin files.

I am not sure yet which approach would be best.

nmpeterson commented 3 years ago

While this issue is mostly fixed, there is still some nuance that could cause problems: