[GRASS-dev] [GRASS GIS] #1500: g.region returns wrong convergence angle

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1500&gt;
GRASS GIS <http://grass.osgeo.org>

#1500: g.region returns wrong convergence angle
----------------------------------+-----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Keywords: g.region convergence | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------
Changes (by hamish):

  * component: Default => Projections/Datums
  * milestone: => 7.0.0

Comment:

try `g.region -d` first.

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.

see #791

cpu? os? 32 or 64 bit? compiler version?

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1500#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1500: g.region returns wrong convergence angle
----------------------------------+-----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Keywords: g.region convergence | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------

Comment(by annakrat):

Setting default region doesn't help.
I have Ubuntu 10.04, 32 bit, gcc 4:4.4.3, proj 4.7.0-2

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1500#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1500: g.region returns wrong convergence angle
----------------------------------+-----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Projections/Datums | Version: svn-trunk
Keywords: g.region convergence | Platform: Unspecified
      Cpu: Unspecified |
----------------------------------+-----------------------------------------

Comment(by hamish):

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

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1500#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1500: g.region returns wrong convergence angle
-----------------------------------+----------------------------------------
Reporter: annakrat | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.4
Component: Projections/Datums | Version: svn-trunk
Keywords: g.region, convergence | Platform: Unspecified
      Cpu: Unspecified |
-----------------------------------+----------------------------------------
Changes (by hamish):

  * keywords: g.region convergence => g.region, convergence
  * priority: normal => major
  * milestone: 7.0.0 => 6.4.4

Comment:

still working for me in debian/squeeze 64bit, proj 4.7.0-1.

does not work for me on ubuntu 12.04 + self built 6.4.3svn packages +
spearfish default region. (0.00000)

proj package is official ubuntu 4.7.0-1.

> The valgrind log indicates that a variable (fact.conv?) may be being
used uninitialized.

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1500#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>