[GRASS-dev] Re: [GRASS GIS] #785: wx location wizard: doesn't show all datum transform opts

GRASS GIS trac at osgeo.org
Sun Oct 11 04:39:00 EDT 2009

#785: wx location wizard: doesn't show all datum transform opts
  Reporter:  hamish    |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  wxGUI     |     Version:  svn-develbranch6         
Resolution:            |    Keywords:  location wizard          
  Platform:  Linux     |         Cpu:  x86-64                   
Comment (by hamish):

 * datum name now makes it to 'g.proj -p', great.

 some fine tuning:

  * search by code works well. if I search for the "wgs" datum I see a
 bunch of repeats.

  * trying to make a UTM location:
 Traceback (most recent call last):
   File "/home/hamish/dev/grass/svn/grass65/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/location_wizard.py", line 1573, in
   File "/home/hamish/dev/grass/svn/grass65/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/location_wizard.py", line 1983, in
     proj4string = '+proj=%s +zone=%s' % (utm, utmzone)
 NameError: global name 'utm' is not defined

 this needs to be undone:
 @@ -1979,10 +1981,12 @@
              proj4string = '+proj=longlat'
          elif proj == 'utm':
 -            proj4string = '+proj=%s +zone=%s' % (proj, utmzone)
 +            proj4string = '+proj=%s +zone=%s' % (utm, utmzone)
              if utmhemisphere == 'south':
 -                proj4string += ' +south'
 +                proj4string += '+south'
              proj4string = '+proj=%s ' % (proj)

  * could it ask for the datum transform before getting to the summary
 page? the summary page still lists the +dx +dy +dz proj4 terms which will
 not be used.

  * text line for datum transform option # 1 overflows the right edge of
 the window (..."(May not be optimum for older [chop]")

  * "Datums (select to see descriptions)" - nitpicky: It should probably be
 "Transform Parameters:" not "Datums:".

  * could the transform pulldown list be by +proj4 term instead of by
 number? The number is internals which doesn't need to be exposed. Suggest
 adding '+' to the start of the proj4 term.


Ticket URL: <https://trac.osgeo.org/grass/ticket/785#comment:10>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list