Ticket #165 (closed enhancement: done)

Opened 7 years ago

Last modified 7 years ago

Convert CMS ID's to District 12 numbering scheme

Reported by: jdalbey Owned by: tanmay
Priority: High Milestone: Sep 2019 Training
Component: CPTMS Version:
Severity: Minor Keywords:
Cc: jdalbey

Description

Attached is the data file containing CMS locations used in CPTMS. Currently the CMS ID's shown in CPTMS are those obtained from the  CalTrans CWWP. They need to be converted to a numbering scheme used in District 12. The mapping from current ID to D12 number is provided in an attached file "CMS ID conversion.csv". (The last column is the D12 number). There are about 64 ID's to be converted.

The deliverable is a copy of the original CMS location json file where the ID's have been replaced by their D12 equivalent.

While this task could be performed manually, there is a high chance for data entry error. A better approach is to write a script to automatically perform the conversion. One strategy is to edit the csv file and turn it into a sequence of sed commands.

Attachments

cms_locations_D12.gjson Download (15.2 KB) - added by jdalbey 7 years ago.
CMS locations file (original)
CMS ID conversion.csv Download (2.1 KB) - added by jdalbey 7 years ago.
File that maps CMS ID into D12 numbering
CMSsubstitutes.sh Download (897 bytes) - added by jdalbey 7 years ago.
sed commands to do the conversion (except #52)

Change History

Changed 7 years ago by jdalbey

CMS locations file (original)

Changed 7 years ago by jdalbey

File that maps CMS ID into D12 numbering

Changed 7 years ago by jdalbey

sed commands to do the conversion (except #52)

comment:1 Changed 7 years ago by jdalbey

Fixed in r430.

comment:2 Changed 7 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to done
Note: See TracTickets for help on using tickets.