#1500: g.region returns wrong convergence angle
----------------------------------+-----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Default | Version: svn-trunk
Keywords: g.region convergence | Platform: Unspecified
Cpu: Unspecified |
----------------------------------+-----------------------------------------
When I run
{{{
g.region -n
}}}
in G7 in spearfish dataset, I get a nonsense and every time it's different
value:
{{{
(Tue Nov 29 08:04:55 2011)
g.region -n
convergence angle: -65.370921
(Tue Nov 29 08:04:55 2011) Command finished (0 sec)
(Tue Nov 29 08:04:58 2011)
g.region -n
convergence angle: -112.346011
(Tue Nov 29 08:04:58 2011) Command finished (0 sec)
(Tue Nov 29 08:04:59 2011)
g.region -n
convergence angle: -0.922875
(Tue Nov 29 08:04:59 2011) Command finished (0 sec)
}}}
When I switch to different location (nc_spm_08), it seems to be OK.
In grass 6.5 it works (both locations).
if you are far out of the valid coordinates for a given CRS the math blows
up. and the valid extent for any given CRS is undefined, although there
are usually vague rules of thumb for how far outside you can go before the
distortion gets too wild.
Replying to [comment:2 annakrat]:
> Setting default region doesn't help.
> I have Ubuntu 10.04, 32 bit, gcc 4:4.4.3, proj 4.7.0-2
ok, just thought I'd check. when I was testing this earlier I wasted more
than a bit of time having it fail in a new location with the default w=0
e=1 s=0 e=1 region. oops.
so I expect this report is a duplicate of #791, ''The valgrind log
indicates that a variable (fact.conv?) may be being used uninitialized.''
I just tried on ubuntu 10.04 64bit, proj 4.7.0-1--
* official 6.4 package 6.4.0~rc5+39438-1build2: works
* (a bit old) self-built 6.5svn: fails
debian/squeeze 64bit, proj 4.7.0-1--
* official GRASS 6.4.0+42329 pkg: fails
* self-built 6.4.2svn: works
* self-built 6.5svn: works
* self-built 7svn: works