def dPosition(igdb): cDomainName = 'dPositions' cdDomainValueDict = {"B":"Back", "S":"Side"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dSide(igdb): cDomainName = 'dSides' cdDomainValueDict = {"2":"Both Sides","1":"One Side", "0":"Neither Side"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dLighting(igdb): cDomainName = 'dLighting' cdDomainValueDict = {"I":"Incandescent", "L":"LED", "B":"Both"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueDomain(igdb): cdDomainValueDict = {"E":"East", "N":"North", "NE":"Northeast", "NW":"Northwest", "S":"South", "SE":"Southeast", "SW":"Southwest", "W":"West"} cDomainName = 'dDirection' CreateDomain_management (gdb, cDomainName, 'Valid Reference Directions', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dReflector(igdb): cDomainName = 'dcReflector' cdDomainValueDict = {"N":"Nonreflectorized", "P":"Prismatic", "R":"Reflectorized"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dDiameter(igdb): cDomainName = 'dDiameters' cdDomainValueDict = {"RP":"Regular pair", "6":"6 inch diameter", "8":"8 inch diameter", "10":"10 inch diameter", "12":"12 inch diameter"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueDomainDevelopmentZoned(igdb): cDomainName = 'dRCcDevelopmentZoned' cdDomainValueDict = {"C":"Commercial", "I":"Industrial", "G":"Institutional", "O":"Open Space", "R":"Residential"} CreateDomain_management (gdb, cDomainName, 'Zoning or Development in Area of Crossing', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueAlignment(igdb): cDomainName = 'dRCAlignment' cdDomainValueDict = {"T":"Tangent", "C":"Curve"} CreateDomain_management (gdb, cDomainName, 'Alignment between railroad and roadway', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dTrackType(igdb): cDomainName = 'dTrackType' cdDomainValueDict = {"I":"Industry", "S":"Siding", "T":"Transit", "Y":"Yard" } CreateDomain_management (gdb, cDomainName, 'Track Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueDomainNearCity(igdb): cDomainName = 'dRCcNearCity' cdDomainValueDict = {"C":"Within City Limits", "NO":"Near or Outside City Limits"} CreateDomain_management (gdb, cDomainName, 'Valid Reference Directions', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueCrossingType(igdb): cDomainName = 'dRCType' cdDomainValueDict = {"Ped":"Pedestrian Crossing", "Pri":"Private Vehicle Crossing", "Pub":"Public Vehicle Crossing"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dUrbanRural(igdb): cDomainName = 'dUrbanRural' cdDomainValueDict = {"U":"Urban", "R":"Rural"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueDomainDistrict(igdb): cdDomainValueDict = {"1":"1", "2":"2", "3":"3","4":"4","5":"5","6":"6"} cDomainName = 'dcDistrict' CreateDomain_management (gdb, cDomainName, 'Valid Reference Directions', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueDomainLocSource(igdb): cDomainName = 'dRCcLocSource' cdDomainValueDict = {"A":"Actual", "E":"Estimated"} CreateDomain_management (gdb, cDomainName, 'Valid Reference Directions', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dSpeedReg(igdb): cDomainName = 'dSpeedReg' cdDomainValueDict = {"P":"Posted", "S":"Statutory"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedValueDomainYN(igdb): cdDomainValueDict = {"Y":"Yes", "N":"No"} cDomainName = 'dYesNo' CreateDomain_management (gdb, cDomainName, 'Valid Reference Directions', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dCodedCrossingStatus(igdb): cDomainName = 'dRCStatus' cdDomainValueDict = {"A":"Crossing Actively Used", "RA":"Railroad Abandonment", "RC":"Road closed", "TU":"Tracks present but Unusable", "TR":"Tracks Removed", "XC":"Crossing Closed"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Status', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dMaterialList(igdb): cDomainName = 'dRCcMaterials' cdDomainValueDict = {"T":"Timber", "A":"Asphalt", "AT":"Asphalt and Timber", "C":"Concrete", "CR":"Concrete and Rubber", "M":"Metal", "U":"Unconsolidated", "P":"Composite", "O":"Other"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Material', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dApproach(igdb): cDomainName = 'dGeneric' cdDomainValueDict = {"1a":"Approach Side Only", "2":"Both Approach and Depart Sides", "1d":"Depart Side only", "0":"Neither Approach nor Depart Sides"} CreateDomain_management (gdb, cDomainName, 'Approach', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dNHS(igdb): cDomainName = 'dNHS' cdDomainValueDict = {"I":"Interstate National Highway System", "N":"Non-Federal-Aid", "O":"Other Federal-Aid Highway-Not NHS", "H":"Other National Highway System"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dRdSuffix(igdb): cDomainName = 'dRdSuffix' cdDomainValueDict = {"I":"Interstate","US":"US Route", "SH": "State Highway", "CR":"County Road", "TL":"Toll Road", "LS":"Local Street", "FM":"Farm to Market"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dStrPrefix(igdb): cDomainName = 'dStrPrefix' cdDomainValueDict = {"AVE":"Avenue", "BLVD":"Boulevard", "CIR":"Circle", "DR":"Drive", "HWY":"Highway", "LN":"Lane", "PKWY":"Parkway", "PL":"Place", "RD":"Road", "ST":"Street", "TER":"Terrace", "WAY":"Way"} CreateDomain_management (gdb, cDomainName, 'Road Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dFunClass(igdb): cDomainName = 'dFunClass' cdDomainValueDict = {"1":"Interstate", "2":"Other Freeway and Exressway", "3":"Other Principal Arterial", "4":"Minor Arterial", "5":"Major Collector", "6":"Minor Collector", "7":"Local"} CreateDomain_management (gdb, cDomainName, 'dFunClass', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dFlashType(igdb): cDomainName = 'dFlashType' cdDomainValueDict = {"0T":"No Turn", "0L":"No Left Turn", "0R":"No Right Turn", "00":"None", "R":"Red", "SZ":"School Zone", "TY":"Truck Yard", "Y":"Yellow"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dSpeedLim(igdb): cDomainName = 'dSpeedLim' cdDomainValueDict = {"10":"10 mph","15":"15 mph","20":"20 mph","25":"25 mph","30":"30 mph", "35":"35 mph","40":"40 mph","45":"45 mph","50":"50 mph","55":"55 mph", "60":"60 mph","65":"65 mph","70":"70 mph","75":"75 mph","80":"80 mph"} CreateDomain_management (gdb, cDomainName, 'Railroad Crossing Type', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dRailRoadAdmo(igdb): cDomainName = 'dRailRoadAdmo' cdDomainValueDict = {"BN":"BNSF", "CV":"Cimarron Valley", "GCW":"Garden City Western", "KO":"Kansas & Oklahoma", "KCS":"Kansas City Southern", "KCT":"Kansas City Terminal", "K":"Kyle", "NKC":"Nebraska, Kansas, Colorado", "NCA":"New Century AirCenter", "SKO":"South Kansas & Oklahoma", "UP":"Union Pacific", "VS":"V & S", "WT":"Wichita Terminal"} CreateDomain_management (gdb, cDomainName, 'Railroad Administrative Owner', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName
def dENSPhone(igdb): cDomainName = 'dENSPhone' cdDomainValueDict = {"BN":"800-832-5452 BNSF", "CV":"620-649-3280 Cimarron Valley", "GCW":"800-914-7850 Garden City Western",\ "KO":"866-386-9321 Kansas & Oklahoma",\ "KCS":"877-527-9464 Kansas City Southern",\ "KCT":"913-551-2179 Kansas City Terminal ",\ "K":"800-800-3490 Kyle",\ "NKC":"800-533-9416 Nebraska, Kansas, Colorado",\ "NCA":"913-785-0720 New Century AirCenter",\ "SKO":"866-386-9321 South Kansas & Oklahoma",\ "UP":"800-848-8715 Union Pacific",\ "VS":"800-639-5054 V & S",\ "WT":"800-832-5452 Wichita Terminal"} CreateDomain_management (gdb, cDomainName, 'Emergency Phone Number', 'TEXT', 'CODED', 'DEFAULT', 'DEFAULT') for code in cdDomainValueDict: AddCodedValueToDomain_management(gdb, cDomainName, code, cdDomainValueDict[code]) print cDomainName