[R-sig-Geo] UTM to longlat

Edzer Pebesma edzer.pebesma at uni-muenster.de
Thu May 7 23:47:49 CEST 2009


Yes, but you will not like that call.

In R (package sp), each spatial data set can only have one single
projection. I'd suggest, in pseudo-code

- import the data into a data.frame
- for each UTM zone do:
   select the locations
   set their CRS
   reproject to long/lat
- cbind the locations to a single data structure
- convert back to data.frame if needed.
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de/
http://www.springer.com/978-0-387-78170-9 e.pebesma at wwu.de

Renaud Lancelot wrote:
> Dear all,
>
> I have a big dataset (> 200,000 lines) of georeferenced locations
> where the coordinates are given in UTM, spanning over several zones.
> Is is possible to convert all the UTM coordinates into longlat WGS84
> with a single call ?
>
> Renaud



More information about the R-sig-Geo mailing list