Skip to content

Instantly share code, notes, and snippets.

View juanluisrp's full-sized avatar

Juan Luis Rodríguez Ponce juanluisrp

View GitHub Profile
@juanluisrp
juanluisrp / gist:3928064
Created October 21, 2012 18:46
Convert from utm to lat,lon
// include the library
<script src="lib/proj4js-combined.js"></script> //adjust the path for your server
//or else use the compressed version
. . .
// creating source and destination Proj4js objects
// once initialized, these may be re-used as often as needed
var dest = new Proj4js.Proj('EPSG:4236'); //source coordinates will be in Longitude/Latitude
var zone29 = new Proj4js.Proj('EPSG:23029'); //destination coordinates in UTM zone 29