Re: Geo::Ellipsoid module



In article <4IadnXvEpq7c4P7enZ2dnUVZ_sydnZ2d@xxxxxxxxxxx>, harryfmudd
[AT] comcast [DOT] net wrote:

> Jim Gibson wrote:


>
> It might be a Good Thing if the user could find out somehow that he or
> she didn't get the ellipsoid specified, just to guard against typos. I
> tend to croak for things like this, but it looks like you would prefer
> not to. Other possibilities I can think of include:
>
> carp
>
> fail to instantiate, and provide a way to figure out what went wrong.
>
> provide an accessor, so the user can find out which ellipsoid is
> actually in use.

Indeed. I did not mention it, but the module uses carp to issue the
following message:

"Ellipsoid $ellipsoid does not exist; defaulting to WGS84"

and similarly when the user specifies a zero flattening reciprocal:

"Infinite flattening specified by ellipsoid -- assuming a sphere"

and for specifying angle units other than radians or degrees:

"Invalid units specifier '$units' - using radians"

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
.