I have a shapefile of San Francisco that I successfully loaded but I need to convert the coordinates to longitude/latitude form. The variables I have are as follows:
w1 = x coordinates w2 = y coordinates
Currently the coordinates look like this:
print(w1[0], w2[0])
6017864.66784 2104744.54451
I've tried to convert the points like such:
from pyproj import Proj, transform
inProj = Proj(init='epsg2227')
outProj = Proj(init='epsg4326')
x1, y1 = w1[0], w2[0]
x2, y2 = transform(inProj, outProj, x1, y1)
print(x2, y2)
-70.44154167927961 41.036642156063856
San Francisco's coordinates are approximately -122 degrees west and 37.7 degrees north. I believe my problem is that my inProj and outProj commands have the wrong epsg but I can't figure out what I should be. Any help would be greatly appreciated.