An embedded and charset-unspecified text was scrubbed... Name: n?o dispon?vel URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080916/9ba9430c/attachment.pl>
Converting Geo-Coordinates Unities
4 messages · Rodrigo Aluizio, James Muller, Roger Bivand
I'd recommend just using a simple function for this particular thing, and then use proj4 for complicated geographical transforms. This is such an elementary operation it's not worth getting involved proj4, which, as far as I'm aware, doesn't bother doing what you're wanting anyway. Now, proj4. What other sorts of transformations are you likely to be doing? Do you know the ins-and-outs of projections and datums? If not, you'll really need to learn something about these in order to use proj4 correctly. James
On Tue, Sep 16, 2008 at 12:35 PM, Rodrigo Aluizio <r.aluizio at gmail.com> wrote:
Hi everybody, I'm looking for some package or function of R that can convert Coordinates of Longitude and Latitude in different formats, such like: Deg and decimals, UTM, degree minutes and seconds, etc... I'm found something (Proj4 package) but I'm note sure if it's what I need. I have a sheet with tree columns, the first has the sample identification, the second and third have the Longitude and Latitude, respectively in D M' S''. I need to transform it into Degrees and decimals. I know that I can create a "function" with some basic mathematics to this one, but I'll need to convert other formats in the future and it won't be that easy. So, any suggestion well be appreciated. Thanks in advice.
___________________________________
MSc. Rodrigo Aluizio
Centro de Estudos do Mar/UFPR
Laborat?rio de Micropaleontologia
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Thanks for the elucidation James. After reading the .pdf of proj4 and your answer, I believe I won't need proj4 package. Well, I still don't know all the kind of transformations we will need here. I'm just getting prepared to future data that is arriving soon. Each time they come, there is a different coordinate unit... I'll star elaborating the mathematic functions for conversions, and save them in a safe place! Anyway thank you so much! Rodrigo. -------------------------------------------------- From: "James Muller" <james.s.muller em gmail.com> Sent: Tuesday, September 16, 2008 1:48 PM To: "R Help" <r-help em r-project.org> Subject: Re: [R] Converting Geo-Coordinates Unities
I'd recommend just using a simple function for this particular thing, and then use proj4 for complicated geographical transforms. This is such an elementary operation it's not worth getting involved proj4, which, as far as I'm aware, doesn't bother doing what you're wanting anyway. Now, proj4. What other sorts of transformations are you likely to be doing? Do you know the ins-and-outs of projections and datums? If not, you'll really need to learn something about these in order to use proj4 correctly. James On Tue, Sep 16, 2008 at 12:35 PM, Rodrigo Aluizio <r.aluizio em gmail.com> wrote:
Hi everybody, I'm looking for some package or function of R that can convert Coordinates of Longitude and Latitude in different formats, such like: Deg and decimals, UTM, degree minutes and seconds, etc... I'm found something (Proj4 package) but I'm note sure if it's what I need. I have a sheet with tree columns, the first has the sample identification, the second and third have the Longitude and Latitude, respectively in D M' S''. I need to transform it into Degrees and decimals. I know that I can create a "function" with some basic mathematics to this one, but I'll need to convert other formats in the future and it won't be that easy. So, any suggestion well be appreciated. Thanks in advice.
___________________________________
MSc. Rodrigo Aluizio
Centro de Estudos do Mar/UFPR
Laborat?rio de Micropaleontologia
[[alternative HTML version deleted]]
______________________________________________
R-help em r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help em r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Rodrigo Aluizio <r.aluizio <at> gmail.com> writes:
Thanks for the elucidation James. After reading the .pdf of proj4 and your answer, I believe I won't need proj4 package. Well, I still don't know all the kind of transformations we will need here. I'm just getting prepared to future data that is arriving soon. Each time they come, there is a different coordinate unit... I'll star elaborating the mathematic functions for conversions, and save them in a safe place! Anyway thank you so much!
First, visit the Task Views page on CRAN, and find the Spatial task view. There you will find effectively all you need. Look in the sp package documentation for the DMS class for conversion of decimal degrees to DDD:MM:SS, it may help. Do look at PBSmapping or rgdal (project(), spTransform()) for projection to UTM and other coordinate reference systems. Both the mapproj and proj4 packages can be used, but neither is convenient to use if the output needs to be kept portable. Task Views answer quite a lot of questions! Roger
Rodrigo.