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).
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.
-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
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