コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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  
コード例 #4
0
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
コード例 #5
0
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  
コード例 #6
0
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  
コード例 #7
0
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      
コード例 #8
0
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      
コード例 #9
0
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  
コード例 #10
0
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         
コード例 #11
0
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  
コード例 #12
0
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  
コード例 #13
0
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     
コード例 #14
0
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  
コード例 #15
0
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  
コード例 #16
0
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 
コード例 #17
0
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      
コード例 #18
0
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          
コード例 #19
0
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  
コード例 #20
0
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  
コード例 #21
0
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  
コード例 #22
0
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  
コード例 #23
0
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  
コード例 #24
0
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  
コード例 #25
0
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  
コード例 #26
0
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  
コード例 #27
0
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