This commit is contained in:
Ed Chalstrey 2022-03-29 10:33:47 +01:00
parent f49e378fe3
commit f1946ea35b

View File

@ -19,7 +19,8 @@ def main(mastermap_path):
def filter_mastermap(mm_path):
output_path = "{}.filtered.csv".format(str(mm_path).replace(".gml.csv", ""))
output_path = str(mm_path).replace(".gml.csv", "")
output_path = "{}.filtered.csv".format(output_path)
output_fieldnames = ('WKT', 'fid', 'descriptiveGroup')
# Open the input csv with all polygons, buildings and others
with open(mm_path, 'r') as fh: