import json


def read_shapefile_data(path,file_name):
    """
    Reads in a json file containing the path to shapefiles,
    on regional, province and municipality level
    and crs foe encoding
    """


    d=json.load(open(path+file_name))
    path_shapefiles=d["path_shapefiles"]
    regions=d["regions"]
    provinces=d['provinces']
    municipalities=d['municipalities']
    territories=d['area_territoriali']
    crs=d['crs']
    return path_shapefiles,regions,provinces,territories,municipalities,crs