- divroad = poFeature.GetField("DIVROAD")
- if divroad != None:
- if divroad == "Y" and "highway" in tags and tags["highway"] == "residential":
- tags["highway"] = "tertiary"
- tags["tiger:separated"] = divroad
+ # TIGER 2017 no longer contains this field
+ if 'DIVROAD' in fieldNameList:
+ divroad = poFeature.GetField("DIVROAD")
+ if divroad != None:
+ if divroad == "Y" and "highway" in tags and tags["highway"] == "residential":
+ tags["highway"] = "tertiary"
+ tags["tiger:separated"] = divroad