I have a Python function which converts Eastings and Northings to Latitude and Longitude
if line_count == 0:
keys = row
print('keys', keys)
line_count += 1
else:
inProj = Proj(init='epsg:27700') # British National Grid
outProj = Proj(init='epsg:4326') # WGS84
x1, y1 = row[1], row[2] # easting, northing
x2, y2 = transform(inProj, outProj, x1, y1)
row[1], row[2] = y2, x2
json_doc = {}
At the moment it converts from epsg:27700 (British National Grid) to WGS84, however there is a possibility I will get TM75 Irish Grid too. Is there any way I can get Python to recognised which CRS is applicable for the conversion?