Re: [R-sig-Geo] a projection question

2013-12-23 Thread Roger Bivand
On Sat, 21 Dec 2013, Hodgess, Erin wrote: Hello everyone: I'm setting up a function in which the user enters the projection (as part of other stuff). What is the best way to determine if the entered projection is correct, please? (so I can send back an error message right away).

Re: [R-sig-Geo] a projection question

2013-12-22 Thread Barry Rowlingson
First thought is to try and project a sample point and catch any error messages, but you can't be sure that your sample point is valid in the given coordinate system. Second thought was to look at the proj4 and rgdal packages to see if they implemented checking of PROJ.4 strings. Couldn't see it.

Re: [R-sig-Geo] a projection question

2013-12-22 Thread Hodgess, Erin
-Geo] a projection question First thought is to try and project a sample point and catch any error messages, but you can't be sure that your sample point is valid in the given coordinate system. Second thought was to look at the proj4 and rgdal packages to see if they implemented checking of PROJ.4

[R-sig-Geo] a projection question

2013-12-21 Thread Hodgess, Erin
Hello everyone: I'm setting up a function in which the user enters the projection (as part of other stuff). What is the best way to determine if the entered projection is correct, please? (so I can send back an error message right away). Thanks, Erin [[alternative HTML version