Skip to content

Instantly share code, notes, and snippets.

@esisa
Created October 9, 2012 11:43
Show Gist options
  • Save esisa/3858222 to your computer and use it in GitHub Desktop.
Save esisa/3858222 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
import pyproj
# Point
lon = 10
lat = 60
# Projections
fromProj = pyproj.Proj(init='epsg:4258')
toProj = pyproj.Proj(init='epsg:25832')
# Reproject the line
x, y = pyproj.transform(fromProj, toProj, lon, lat)
print x
print y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment