Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyproj
- def gcba_proj(x, y):
- """
- Converts x and y from Gauss Kruger projection to longitude and latitude coordinates system
- Arg
- ---
- x: Longitud term.
- y: Latitud term.
- Returns
- -------
- Tuple with longitude and latitude values. i.e: (-54.235, -38.245).
- """
- longitud = x
- latitud = y
- bsas_proj = pyproj.Proj("""+proj=tmerc +lat_0=-34.6297166 +lon_0=-58.4627 +k=0.9999980000000001 +x_0=100000 +y_0=100000
- +ellps=intl +towgs84=-148,136,90,0,0,0,0 +units=m +no_defs""")
- lola_proj = pyproj.Proj("+init=EPSG:4326")
- return pyproj.transform(bsas_proj, dest_proj, longitud, latitud)
Add Comment
Please, Sign In to add comment