Steve, I've used package PBSmaping to convert from UTM to Lat/Long and back. I posted a dataset, a snippet of R code, and the resulting file as a recent blog entry:
http://blog.lib.umn.edu/wage0005/echinacea/2009/07/spp_coordinates.html You may find it helpful. Stuart On Thu, Jul 9, 2009 at 4:25 PM, Steve Hong<seungh...@wisc.edu> wrote: > Thank all of you for responding! I will take a look at rgdal. > > Cheer! > > Steve > > ----- Original Message ----- > From: Roger Bivand <roger.biv...@nhh.no> > Date: Thursday, July 9, 2009 4:04 pm > Subject: Re: [R-sig-Geo] convert long/lati to UTM > To: Barry Rowlingson <b.rowling...@lancaster.ac.uk> > Cc: Paul Hiemstra <p.hiems...@geo.uu.nl>, s...@entomology.wisc.edu, > r-sig-geo@stat.math.ethz.ch > > >> On Thu, 9 Jul 2009, Barry Rowlingson wrote: >> >> >On Thu, Jul 9, 2009 at 9:23 PM, Paul Hiemstra<p.hiems...@geo.uu.nl> wrote: >> >>Hi, >> >> >> >>More in general you need to take a look at the sp-pacakge for Spatial >> >>classes in R. Once your data is in these classes you can use spTransform >> >>from the rgdal pacakge to perform the projection. spTransform uses >> the proj4 >> >>library. You need to find the so called proj4 strings describing >> both the >> >>source and target projection. >> >> >> > >> >There seems to be several ways of reprojecting/coordinate >> transforming in R... >> > >> >package:sp, in ?is.projected, mentions an spproj package which I >> >can't find. Is that just a documentation error?... >> >> Documentation error, will be corrected. >> >> > >> >package:rgdal has spTransform as mentioned... >> > >> >> Correct, a good deal based on your work for vector data and projection. >> >> >package:proj4 seems to be an independent interface to the PROJ4 library. >> > >> >> Odd and unhelpful, a one-off attempt to replace mapproj, which works >> together with the maps package, but has unclear license conditions. >> This package doesn't interface with any other spatial packages, and >> the author has never replied to questions about coordinating to get >> rgdal on CRAN as an OSX binary package. Use proj4 or maptools is you >> must, rgdal for preference - spproj was a development vehicle for >> methods that are now in rgdal. >> >> Roger >> >> >Barry >> > >> >_______________________________________________ >> >R-sig-Geo mailing list >> >R-sig-Geo@stat.math.ethz.ch >> >https://stat.ethz.ch/mailman/listinfo/r-sig-geo >> > >> >> -- >> Roger Bivand >> Economic Geography Section, Department of Economics, Norwegian School >> of >> Economics and Business Administration, Helleveien 30, N-5045 Bergen, >> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 >> e-mail: roger.biv...@nhh.no >> > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo