Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Renaud Lancelot
Thank you Roger. Using do.call("spRbind", myListOfSpatialPointsObjects) do not work, but I can work around. Renaud 2009/5/8 Roger Bivand > On Fri, 8 May 2009, Renaud Lancelot wrote: > > Thank you, here is the full process trying to follow Edzer's suggestion: >> >> library(RODBC) >> library(r

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Roger Bivand
On Fri, 8 May 2009, Renaud Lancelot wrote: Thank you, here is the full process trying to follow Edzer's suggestion: library(RODBC) library(rgdal) channel <- odbcConnectAccess("farms.mdb") sigal <- sqlQuery(channel, "select * from T_SIGAL") Liste <- by(sigal, list(zone = sigal$zone),

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Renaud Lancelot
Thank you, here is the full process trying to follow Edzer's suggestion: library(RODBC) library(rgdal) channel <- odbcConnectAccess("farms.mdb") sigal <- sqlQuery(channel, "select * from T_SIGAL") Liste <- by(sigal, list(zone = sigal$zone), function(x){ strg

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Jim Burke
Its all quite simple I think (i.e. "hope"). Have you used spTransform(rdgal)? ## here I have a file from a local group delivered ## in UTM format that I transformed OK to long-lat. library(rgdal) # for map projection support; automatically loads sp ## transform internal measurements from UTM to

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Renaud Lancelot
Thank you Edzer. I was hoping there was a simpler solution, but it's still fairly simple. Renaud 2009/5/7 Edzer Pebesma > 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 i

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Renaud Lancelot
Thank you Milton. I have already explored this source, without success. Renaud 2009/5/7 milton ruser > Hi Renaud, > > may be you find some solution reading last posts. > > > http://search.r-project.org/cgi-bin/namazu.cgi?query=utm+to+latlong&max=20&result=normal&sort=score&idxname=Rhelp02a&idxn

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread Edzer Pebesma
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

Re: [R-sig-Geo] UTM to longlat

2009-05-07 Thread milton ruser
Hi Renaud, may be you find some solution reading last posts. http://search.r-project.org/cgi-bin/namazu.cgi?query=utm+to+latlong&max=20&result=normal&sort=score&idxname=Rhelp02a&idxname=functions&idxname=docs cheers milton On Thu, May 7, 2009 at 5:11 PM, Renaud Lancelot wrote: > Dear all, > >

[R-sig-Geo] UTM to longlat

2009-05-07 Thread Renaud Lancelot
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 -- Renaud Lancelot EDEN Project, coordinator http: