Last active
January 5, 2017 22:24
-
-
Save davewalk/11150808 to your computer and use it in GitHub Desktop.
Convert state plane PA South coordinates to lat/longs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyproj | |
def convert(x, y): | |
state_plane = pyproj.Proj(init='epsg:2272', preserve_units=True) | |
wgs = pyproj.Proj(proj='latlong', datum='WGS84', ellps='WGS84') | |
lng, lat = pyproj.transform(self.state_plane, self.wgs, x, y) | |
return lat, lng |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This worked for me after I changed line 6 to: