[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 12:08:14 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 cmbarton):

 Replying to [comment:10 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
 OnEnterPage
 >     self.lproj4string.SetLabel(self.parent.CreateProj4String())
 >   File "/home/hamish/dev/grass/svn/grass65/dist.x86_64-unknown-linux-
 gnu/etc/wxpython/gui_modules/location_wizard.py", line 1983, in
 CreateProj4String
 >     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'
 >          else:
 >              proj4string = '+proj=%s ' % (proj)
 > }}}

 easily fixed

 >
 >  * 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.
 >

 I agree this would be better. It will take some reprogramming of how the
 wizard works.

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

 Long standing problem. There '''should''' be horizontal scroll bars. I've
 never figured out why they don't show up. There are some tricky list
 formatting issues. I'll see what can be done. You can resize the list
 columns as a workaround.

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

 Easy

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

 Probably easy to do and it makes sense. I just lifted some existing code.
 This can be improved.

 > Suggest adding '+' to the start of the proj4 term.

 I don't understand. Could you explain.

 Michael

 >
 >
 > thanks,
 > Hamish

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


More information about the grass-dev mailing list