def load_polygons(geom_files):
    polygons = []
    if isinstance(geom_files, basestring):
        geom_files = [geom_files]
    
    for geom_file in geom_files:
        # open with utf-8-sig encoding to get rid of UTF8 BOM from MS Notepad
        with codecs.open(geom_file, encoding='utf-8-sig') as f:
            polygons.extend(load_polygon_lines(f, source=geom_files))
    
    return polygons
Loads WKT polygons from one or more text files.
dataset/ETHPy150Open omniscale/imposm/imposm/util/geom.py/load_polygons