Package: proj
Version: 4.4.9-1
Severity: normal

[EMAIL PROTECTED]:~$ echo '90N 14E 90S 18E' | geod +ellps=WGS84 -I +units=km

results in 

-2147483648d-2147483648'nan"    -2147483648d-2147483648'nan"    nan

...which looks like a bug to me. I'd expect something close to
20000km...

[EMAIL PROTECTED]:~$ echo '89N 14E 89S 99E' | geod +ellps=WGS84 -I +units=km
137d29'31.508"  -42d30'28.492"  19839.241

..which seems okay but

[EMAIL PROTECTED]:~$ echo '90N 14E 89S 18E' | geod +ellps=WGS84 -I +units=km
4d      180d    111.694

...which is way too short. Going from north pole close to south pole
should take more than 112 km.

Ok, maybe core of the problem is that it does not check for invalid
inputs, and 90N is invalid input for some reason? 91N definitely
should be invalid ;-)

[EMAIL PROTECTED]:~$ echo '91N 14E 89S 99E' | geod +ellps=WGS84 -I +units=km
132d29'44.351"  -132d29'44.351" 150.914


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc4-mm1
Locale: LANG=C, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

Versions of packages proj depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

proj recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to