Skip to content

Instantly share code, notes, and snippets.

@lauri-kaariainen
Last active August 29, 2015 14:09
Show Gist options
  • Save lauri-kaariainen/0fa124e80e47e7e21c11 to your computer and use it in GitHub Desktop.
Save lauri-kaariainen/0fa124e80e47e7e21c11 to your computer and use it in GitHub Desktop.
ProJ4.js coordinate changes from ETRS-TM35FIN to WGS-84
<!doctype html>
<head>
<meta charset="utf-8">
<script src="proj4.js"></script>
</head>
<body>
<script>
//https://github.com/proj4js
//wgs-84
var wgsProjection = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";
//etrs-tm35fin
var finnProjection = "+proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs";
console.log(proj4(finnProjection,wgsProjection,[380150.000,6684000.000]));
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment