def _get_epsg(lat, zone_nr):
    """
    Calculates the epsg code corresponding to a certain latitude given the zone nr
    """
    if lat >= 0:
        epsg_code = '326' + str(zone_nr)
    else:
        epsg_code = '327' + str(zone_nr)
    return int(epsg_code)