[GRASS-dev] [GRASS GIS] #877: wxGUI: Location wizard bug when creating LatLong location

#877: wxGUI: Location wizard bug when creating LatLong location
-----------------------------+----------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Keywords: location wizard | Platform: MSWindows Vista
      Cpu: Unspecified |
-----------------------------+----------------------------------------------
* Launch winGRASS
  * On the right-hand side select Location Wizard under Define new location
  * Leave the GIS Data Directory field as is but choose a descriptive name
for the Project Location
  * Continue to the next page
  * Choose Select Coordinate System parameters from a list and continue
  * Type in ll for the Projection Code (or scroll down the page to find
Lat/Lon)
  * Continue to the next page
  * Keep "Datum with associated ellipsoid"
  * Continue to the next page: bug appears "You must enter a value for
Central Meridian" although values are inserted

See attached screenshot.

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by cmbarton):

I just tried this and it works fine for me. No error if I duplicate your
steps. You are doing this in 6.4 release branch right?

Michael

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by neteler):

Yes, I used the winGRASS package from the GRASS web site. The same was
also confirmed by at least two other people (see mailing list). How can I
debug this?

Markus

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by cmbarton):

Is it happening on Linux too, or only on Windows? It's not happening on
the Mac.

Michael

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by neteler):

It is a Windows-only bug.

Markus

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by hamish):

  * keywords: location wizard => location wizard, wingrass

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by cmbarton):

OK. I'll take a look at the code with that in mind. I won't be able to
test, but maybe I can see something

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by mmetz):

Attached patch works for me under Linux and Windows XP. The logic for this
fix is that a default value was set and then got lost, therefore the error
message, so it sets the default value again for all parameters that are
not editable. Doesn't really make sense to me but works, and maybe it
points into the right direction for a better fix.

Markus M

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by martinl):

* cc: grass-dev@lists.osgeo.org (added)
  * owner: grass-dev@lists.osgeo.org => martinl
  * status: new => assigned

Comment:

Replying to [comment:7 mmetz]:
> Attached patch works for me under Linux and Windows XP. The logic for
this fix is that a default value was set and then got lost, therefore the
error message, so it sets the default value again for all parameters that
are not editable. Doesn't really make sense to me but works, and maybe it
points into the right direction for a better fix.

right, committed in r40524. I am going to rewrite this part in devbr6 and
trunk, so not backported. Martin

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by lponti):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

I am re-opening this because a similar problem happens with recent
WinGRASS-6.4.SVN-r40650-1-Setup.exe (26-Jan-2010 03:47) on Windows 7.
First report was on Windows Vista: please, see
http://n2.nabble.com/Location-Wizard-Problem-tp4281871p4460300.html

Text input boxes for Central Parallel and Central Meridian are grayed, and
show 0.0 preset answer with no way to modify it (you can put cursor in the
text box and highlight 0.0 but there is no way to enter text).

Regards,

Luigi

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by neteler):

I think that the greyed out fields are correct (what to you want to change
there?). But do you get the bug "You must enter a value for Central
Meridian" although values are inserted?

Luigi: I tried it on a Japanese XP and it worked. Do you use the English
or Italian version?

Markus

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by hamish):

0.0,0.0 is correct. you want 0 lat, 0 lon to be somewhere south of Ghana.
Maybe for lat/lon we should hide those.

Hamish

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by lponti):

Sorry for my ignorance, Hamish. That behavior (not being able to change
greyed fields) has been reported as a problem on the mailing list (see
link in my previous comment) so I thought it was a problem:

>
> When I try to enter a Central Parallel or Central Meridian, nothing
> changes occur in the entry boxes. I can highlight the default zero
> values, but I am unable to change them.
>

However, I don't get the "You must enter a value for Central Meridian"
bug, and the location gets created OK. Again I am on Win7 and no spaces in
installation path -- maybe it is related to the latter?

I think I am using an Italian version: there is a mix of Italian and
English language.

I apologize again for an incomplete report,

Luigi

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: reopened
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Comment (by neteler):

Replying to [comment:13 lponti]:
> Sorry for my ignorance, Hamish. That behavior (not being able to change
greyed fields) has been reported as a problem on the mailing list (see
link in my previous comment) so I thought it was a problem

To my knowledge the original issue was then you could not proceed on
*some* platforms/computers. The fields are currently intentionally greyed
out since it is not the definition of a custom projection (that's in
another wizard section AFAIK).

> However, I don't get the "You must enter a value for Central Meridian"
bug, and the location gets created OK. Again I am on Win7 and no spaces in
installation path -- maybe it is related to the latter?

So - everything fine on your's and my computer.

> I think I am using an Italian version: there is a mix of Italian and
English language.

[unrelated: because the translation isn't finished, support welcome]

Markus

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

#877: wxGUI: Location wizard bug when creating LatLong location
------------------------------+---------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords: location wizard, wingrass
  Platform: MSWindows Vista | Cpu: Unspecified
------------------------------+---------------------------------------------
Changes (by hamish):

  * status: reopened => closed
  * resolution: => fixed

Comment:

no reason to keep this one open AFAIK.

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