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

36 messages Options
Embed this post
Permalink
1 2
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
#785: wx location wizard: doesn't show all datum transform opts
--------------------+-------------------------------------------------------
 Reporter:  hamish  |       Owner:  [hidden email]
     Type:  defect  |      Status:  new                      
 Priority:  major   |   Milestone:  6.4.0                    
Component:  wxGUI   |     Version:  svn-develbranch6        
 Keywords:          |    Platform:  Linux                    
      Cpu:  x86-64  |  
--------------------+-------------------------------------------------------
 Hi,

 If I create a new location with the wx loc'n wizard (e.g. proj=nzmg) on
 the "Specify geodetic datum" page if I choose the nzgd49 datum I only see
 two options in the lower pane. There should be three: 3-term, 7-term, and
 NTv2 grid file. I assume the 3-term is the one that's missing but there
 isn't enough info there for the user to know for sure. (add +proj terms as
 a second\n description line or tooltip?)

 for wgs84 it is worse, you get the full list of transform params but no
 +towgs84=0,0,0 option.


 lib/gis/datum.table ignored?

 (also it would be nice if the search tools checked the Code column as well
 as the long description, and clicking on the magnifying glass icon
 executed the search)



 thanks,
 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
#785: wx location wizard: doesn't show all datum transform opts
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  [hidden email]
      Type:  defect  |      Status:  new                      
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  wxGUI   |     Version:  svn-develbranch6        
Resolution:          |    Keywords:                          
  Platform:  Linux   |         Cpu:  x86-64                  
---------------------+------------------------------------------------------
Comment (by cmbarton):

 AFAIK, the options list is created from reading the datum.table file. Can
 you look in this file and see if it actually has the transforms that you
 need but seem to be missing?

 Thanks
 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  [hidden email]
      Type:  defect  |      Status:  new                      
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  wxGUI   |     Version:  svn-develbranch6        
Resolution:          |    Keywords:                          
  Platform:  Linux   |         Cpu:  x86-64                  
---------------------+------------------------------------------------------
Comment (by cmbarton):

 Correction, the options are read from the datumtransform.table file,
 datums and their defaults are read from the datum.table file.

 There are only 2 transforms for nzgd49 and none for wgs84 in the file.

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  [hidden email]
      Type:  defect  |      Status:  new                      
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  wxGUI   |     Version:  svn-develbranch6        
Resolution:          |    Keywords:                          
  Platform:  Linux   |         Cpu:  x86-64                  
---------------------+------------------------------------------------------
Comment (by hamish):

 Replying to [comment:2 cmbarton]:
 > Correction, the options are read from the datumtransform.table
 > file, datums and their defaults are read from the datum.table file.
 >
 > There are only 2 transforms for nzgd49 and none for wgs84 in the
 > file.

 the 7-term and NTv2 transforms for nzgd49 are in the datumtransform.table
 file; the 3-term transform can be found in the datum.table file.

 The WGS84 3-term transform (+towgs84=0,0,0) is also in the datum.table
 file. The terms found in both those files must be combined for
 presentation to the user.


 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  wxGUI     |     Version:  svn-develbranch6        
Resolution:            |    Keywords:  location wizard          
  Platform:  Linux     |         Cpu:  x86-64                  
-----------------------+----------------------------------------------------
Changes (by hamish):

  * keywords:  => location wizard
  * priority:  major => critical

Comment:

 It is worse,

  * start wx loc wiz
  * some new name for the new loc'n
  * proj: nzmg
  * datum: nzgd49
  * transfrom parms: T53
  * Summary page: +dx,+dy,+dz are there (these are the "default" 3-param
 +towgs84 terms) *AND* the 7-term parms from T53. these are mutually
 exclusive.
  :-(

 (no way to cut & paste out of the wizard summary beyond screenshots,
 sorry)

 also:
  * no way to clear/unselect transform params after clicking the [< Back]
 button, even if transform parms choice is removed.

  * if you cancel the wizard, then again start the loc wiz, enter a new
 name but on the Choose Method page don't click on anything but [Next >]
 (leaving default Select Coord Sys selected), you go straight to the
 (mostly empty) Summary page. Doesn't happen the first time.


 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 Question. If I run g.proj with datumtrans=-1 for a UTM zone 3 NAD83, I get
 the following list below. The first 'transformation' is a default non-
 transform and in the datum.table. The remaining 5 transformations are in
 the datumtransform.table.

 If none of the transforms 2-6 are specified, will transform #1 (the
 default) be used?

 Michael

 ---
 1
 Used in whole nad83 region
 towgs84=0.000,0.000,0.000
 Default 3-Parameter Transformation (May not be optimum for older datums;
 use this only if no more appropriate options are available.)
 ---
 2
 Used in Florida
 nadgrids=FL
 Transforms 'Old NAD83' to 'HPGN NAD83'
 ---
 3
 Used in Maryland
 nadgrids=MD
 Transforms 'Old NAD83' to 'HPGN NAD83'
 ---
 4
 Used in Tennessee
 nadgrids=TN
 Transforms 'Old NAD83' to 'HPGN NAD83'
 ---
 5
 Used in Wisconsin
 nadgrids=WI
 Transforms 'Old NAD83' to 'HPGN NAD83'
 ---
 6
 Used in Washington - Oregon
 nadgrids=WO
 Transforms 'Old NAD83' to 'HPGN NAD83'
 GRASS 6.5.svn (Spearfish60_test):~ > c

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 g.proj --help says:
 {{{
   datumtrans   Index number of datum transform parameters
                 "0" for unspecified or "-1" to list and exit
 }}}

 so in this case valid options to pass g.proj for that are 0-6.

 {{{
  g.proj datumtrans=-1  proj4="+proj=lcc +datum=nad83"
 }}}

 [aside]
 North American Datum 1983 (nad83) is chronologically very close to 1984,
 so +towgs84=0,0,0 isn't too surprising (same for any datum post-satellite
 era), the others (2-6) are all NTv2 grid file transforms (is NAD83 a
 continental plate-bound datum?).



 I see the g.proj -t and -d flags, but not really sure if they help.

 here are the valid options I was describing for my neck of the woods:
 {{{
  g.proj proj4="+proj=nzmg +datum=nzgd49" datumtrans=-1
 }}}


 If I guess correctly you are looking at parsing the g.proj datumtr=-1
 output instead of the datumtransform.table file?


 thanks,
 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 Yea. There is already code for this in the epsg select page. I think this
 is the most reliable way to do the transforms.

 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 Replying to [comment:7 cmbarton]:
 > Yea. There is already code for this in the epsg select page.
 > I think this is the most reliable way to do the transforms.

 I concur Dr. Barton. If a pulldown menu were possible, that would be a lot
 easier than transcribing some custom "T21" code number.


 cheers,
 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 I think I've fixed this in develbranch_6 r39480. This also enhances
 searches so that all fields are searched. Please test this. I made a
 location with your New Zealand projection and it asked for the right
 transforms, but you'll know best if it is getting it right.

 If it is OK, I'll backport to trunk and implement in release branch.

 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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
 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)
 }}}

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


 thanks,
 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 there is still some work to be done I'm afraid.. a g.setproj session
 should give some guidance.


 for other projections it is not asking all it needs to. e.g. LCC, TMerc
 never asks for lat_0, lon_0, etc.

 see general/g.setproj/proj-parms.table for a list of questions which need
 to be asked (or are hardwired) for a given projection.

 (see proj-desc.table to convert those to +proj4 terms)


 the wizard should also probably ask what units you want (see proj-
 units.table)


 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 (proj-desc.table, proj-parms.table, and proj-units.table can be found in
 $etc)

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 This was a kind of quick fix just to see if it is doing the right stuff.
 I'm glad that it is (except for the bug you noticed above; I was falling
 asleep). Now I can work on some of the fine tuning.

 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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>

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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:11 hamish]:
 > there is still some work to be done I'm afraid.. a g.setproj session
 should give some guidance.
 >
 >
 > for other projections it is not asking all it needs to. e.g. LCC, TMerc
 never asks for lat_0, lon_0, etc.

 Could you explain?

 >
 > see general/g.setproj/proj-parms.table for a list of questions which
 need to be asked (or are hardwired) for a given projection.

 I'll take a look. I want to try and fix the prior issues first.

 Michael

 >
 > (see proj-desc.table to convert those to +proj4 terms)
 >
 >
 > the wizard should also probably ask what units you want (see proj-
 units.table)
 >
 >
 > Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

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


 Question, is there any '''harm''' in including +dx=0 +dy=0 terms when
 other information about transforms is also included? The reason is that
 the proj4 string is being built by accretion of information out of the
 datums.table and ellipse.table, and then any datum transforms are being
 included using the datatrans= argument for g.proj.

 So does +dx=0, etc. need to be filtered out?

 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 A further question about g.proj.

 If I enter g.proj proj4='+proj=utm +zone=12 +datum=nad27' datatrans=-1

 I get a list of potential datum transforms to pick from.

 If I enter g.proj proj4='+proj=utm +zone=12 +ellps=clark66' datatrans=-1
 (or ellipse parameters instead of clark66)

 I do not get a list of transforms. Is this because...

 1) transforms are not needed if an ellipse is specified
 2) there is a bug in g.proj
 3) something else also needs to be specified to trigger the list of
 transforms?

 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 > This was a kind of quick fix just to see if it is doing the right stuff.

 yup

 > > * trying to make a UTM location:
 > > {{ Traceback (most recent call last):

 fixed in devbr6

 > > Suggest adding '+' to the start of the proj4 term.
 >
 > I don't understand. Could you explain.

 currently line 2 in the transform descr looks like "towgs84=...." or
 "nadgrids=..."
 more familiar would be "+towgs84=..." or "+nadgrids=..."


 > > there is still some work to be done I'm afraid.. a g.setproj
 > > session should give some guidance. for other projections it
 > > is not asking all it needs to. e.g. LCC, TMerc never asks for
 > > lat_0, lon_0, etc.
 >
 > Could you explain?

 e.g. for transverse Mercator projection you need to set up the central
 meridian (lon_0) for the projection and false eastings (x_0) and false
 northings (y_0). Currently the wizard doesn't ask you these essential
 terms and leaves them unset.

 what needs to be asked, their types, and default values can be found
 in the $GISBASE/etc/proj-parms.table file(s).


 > I'll take a look. I want to try and fix the prior issues first.

 ok, one thing at a time..

 > Question, is there any harm in including +dx=0 +dy=0 terms when other
 > information about transforms is also included?

 probably, even if we get away with it today, in the future it could cause
 problems.  The 3-term +towgs84=dx,dy,dz  so having +dx,+dy,+dz as well
 just makes it a matter of programmer's chance as to which is used.
 also for others in datum.table there is dx=99999, which will probably mean
 something to g.proj.

 > The reason is that the proj4 string is being built by accretion of
 > information out of the datums.table and ellipse.table, and then any
 > datum transforms are being included using the datatrans= argument
 > for g.proj.
 >
 > So does +dx=0, etc. need to be filtered out?

 yes, I think it does.


 > If I enter g.proj proj4='+proj=utm +zone=12 +datum=nad27' datatrans=-1
 > I get a list of potential datum transforms to pick from.
 > If I enter g.proj proj4='+proj=utm +zone=12 +ellps=clark66' datatrans=-1
 (or ellipse parameters instead of clark66)
 > I do not get a list of transforms. Is this because...
 >
 > 1) transforms are not needed if an ellipse is specified

 yes. these are datum transform opts. no datum, no transform.

 a datum (in grass) consists of an ellipsoid (shape of the Earth) and
 some notion about where there center of that spheroid sits in space
 (ie where is the center of the planet, what to call 0,0,0). The
 +towgs84 params or grid file gives the translational (and for 7-term,
 rotational) differences relative to WGS84's axes-anchor position.


 I don't think this affects GRASS (except for m.proj), but see also
 http://trac.osgeo.org/proj/wiki/FAQ#WhydoIgetdifferentresultswith4.5.0and4.6.0


 see also "proj -le" and "proj -ld"


 Hamish

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
GRASS GIS

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

Reply Threaded More More options
Print post
Permalink
In reply to this post by GRASS GIS
#785: wx location wizard: doesn't show all datum transform opts
-----------------------+----------------------------------------------------
  Reporter:  hamish    |       Owner:  [hidden email]
      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):

 I've committed some more enhancements/fixes to datum transforms in r39492.
 Please test and see if they hold up.

 I'm not sure what to do about the stuff in the proj_desc.table and
 proj_parms.table. Is any of this built into PROJ4 nowadays? Or does it all
 have to be set manually still?

 In any case, I'll need to look into this further to see how these tables
 are parsed.

 Michael

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

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
1 2