adapt TIGER conversion script for python 3

This commit is contained in:
Sarah Hoffmann
2019-07-28 20:51:06 +02:00
parent 7753ba6019
commit 46e077c40b
2 changed files with 5 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# Tiger road data to OSM conversion script
# Creates Karlsruhe-style address ways beside the main way
# based on the Massachusetts GIS script by christopher schmidt
@@ -164,7 +164,7 @@ def parse_shp_for_geom_and_tags( filename ):
if (statefp != None) and (countyfp != None):
county_name = county_fips_data.get(statefp + '' + countyfp)
if county_name:
tags["tiger:county"] = county_name.encode("utf-8")
tags["tiger:county"] = county_name
# tlid = poFeature.GetField("TLID")
# if tlid != None: