Skip to content

Instantly share code, notes, and snippets.

@jlehtoma
Last active December 13, 2015 23:49
Show Gist options
  • Save jlehtoma/4994222 to your computer and use it in GitHub Desktop.
Save jlehtoma/4994222 to your computer and use it in GitHub Desktop.
ETRS-TM35FIN -> WGS84
library("sp")
library("rgdal")
# df is a data frame holding the coords (in ETRS-TM35FIN) in east (easting) and north (northing) fields
sp.data <- SpatialPointsDataFrame(df[, c(north, east)], df, proj4string = CRS("+init=epsg:3067"))
# Project the spatial data to lat/lon
sp.data.wgs84 <- spTransform(sp.data, CRS("+proj=longlat +datum=WGS84"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment