On Mon, 14 Jan 2008, Dylan Beaudette wrote:

or see the Proj4 library and utilities- outside of R

I.e.:

function project() in the rgdal package. Mauro wrote to me off-list ten days ago and got a reply:

"Please read the help page for the project function (?project) in the rgdal package carefully. There are no variables being projected, only a matrix of point coordinates. The function you quote was for a completely different situation. If your input data are not points in geographical coordinates, see ?"spTransform-methods".

Please also write to the R-sig-geo rather than to me directly - maintainers can help with bugs in software, but the list will give faster and perhaps better response."

At least he read the second paragraph, but probably not the first. I agree that reading the proj4 documentation would help too, but so far we don't know enough - only that the input coordinates seem to be geographical.

Roger


Dylan

On Monday 14 January 2008, Dale Steele wrote:
require(PBSmapping)
?convUL

for example ...

points <- data.frame(cbind(data$idnum, data$long, data$lat, data$var))
colnames(points) <- c("EID", "X", "Y", "var")
attr(points, "projection") <- "LL"
   ## Define as EventData
points <- as.EventData(points)
  ## Transform to UTM (Euclidean) coordinates, uses package PBSmapping
 convUL(points, km=TRUE)

On Jan 14, 2008 6:29 PM, Mauro Sznelwar <[EMAIL PROTECTED]> wrote:
 How can I do to transform geographic coordinates in UTM, I want to
transform a column of latitude and longitude in decimal geographic
coordenates to UTM. I know pages that convert  each value, but I want to
do a whole variable (column)! Mauro Sznelwar - MSc Student of São Paulo
University, Brazil, in the fields of Geoprocessing [[alternative HTML
version deleted]]


_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

_______________________________________________
R-sig-Geo mailing list
[email protected]
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: [EMAIL PROTECTED]
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to