A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 905 bytes Desc: not available Url : stat.ethz.ch/pipermail/r-help/attachments/20010420/61ada248/attachment.bin
I don't know of any R code for this, but there is a freely available software package from the US Geological Survey supporting over 70 different projections, including the ones you mention. You can get it from ftp://kai.er.usgs.gov/pub/Proj.4 The relevant file is PROJ.4.3.3.tar.gz. The documentation is very good (get the the postscript files PROJ.4.3.ps.gz, OF90-284.ps.gz, and SWISS.ps.gz from the above directory). I know NetBSD has this in the Packages Collection netbsd.org/packages/misc/proj (I ought to know, I imported it). I think Debian GNU/Linux has it also. So if you use one of these systems you might not need to compile it yourself. Regards, Jason Beegan.> G' Day, > > > Can you please tell me if there is R code for geographic projections? ie lat, > lon -> x,y metres. I'm principally interested in Mercator and Lambert Equal Ar > ea Azimuthal. Failing R code - code in any language! > > > Many thanks > > > Bernie McConnell > > Bernie McConnell > > <color><param>0000,0000,ffff</param>NERC SEA MAMMAL RESEARCH UNIT > > </color>Gatty Marine Lab, St Andrews University > > St Andrews, Fife, KY16 8LB, Scotland. > > > b.mcconnell at smru.st-andrews.ac.uk > > smru.st-and.ac.uk > > tel: +44 (1334) 463280 > > fax: +44 (1334) 462632 > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "Bernie" == Bernie McConnell <bm8 at st-andrews.ac.uk> writes:Bernie> G' Day, Can you please tell me if there is R code for Bernie> geographic projections? ie lat,lon -> x,y metres. I'm Bernie> principally interested in Mercator and Lambert Equal Area Bernie> Azimuthal. Failing R code - code in any language! Try PROJ (C library) at remotesensing.org/proj Adam -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 20 Apr 2001, Bernie McConnell wrote:> > Can you please tell me if there is R code for geographic projections? > ie lat,lon -> x,y metres. I'm principally interested in Mercator and > Lambert Equal Area Azimuthal. Failing R code - code in any language! >One good source is remotesensing.org/proj for the PROJ.4 software. Another is the mapproject program in GMT at gmt.soest.hawaii.edu. These are both external to R, but it seems likely that PROJ.4 will form part of an R map package at some stage. You didn't say which platform you use - both these are native Unix/Linux, but at least GMT is available for NT too. While it would be possible to write R code to do this, both of these sources are well-tried and so more likely to work as expected. Roger -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no and: Department of Geography and Regional Development, University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
freegis.org has a good summary of available projection packages. Tim Bernie McConnell wrote:> G' Day, > > Can you please tell me if there is R code for geographic projections? ie > lat,lon -> x,y metres. I'm principally interested in Mercator and > Lambert Equal Area Azimuthal. Failing R code - code in any language! > > Many thanks > > Bernie McConnell > Bernie McConnell > NERC SEA MAMMAL RESEARCH UNIT > Gatty Marine Lab, St Andrews University > St Andrews, Fife, KY16 8LB, Scotland. > > b.mcconnell at smru.st-andrews.ac.uk > smru.st-and.ac.uk > tel: +44 (1334) 463280 > fax: +44 (1334) 462632 > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-help mailing list -- Read > ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or > "[un]subscribe" (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._-- Timothy H. Keitt Department of Ecology and Evolution State University of New York at Stony Brook Phone: 631-632-1101, FAX: 631-632-7626 life.bio.sunysb.edu/ee/keitt -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Roger Bivand wrote:> gmt.soest.hawaii.edu. These are both external to R, but it seems > likely that PROJ.4 will form part of an R map package at some stage. You^^^^^^^^^^^^^^^^^^^^^^^^^ Anyone working on this? Tim -- Timothy H. Keitt Department of Ecology and Evolution State University of New York at Stony Brook Phone: 631-632-1101, FAX: 631-632-7626 life.bio.sunysb.edu/ee/keitt -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._